Mercurial > vim
comparison src/gui_w32.c @ 16606:7e733046db1d v8.1.1306
patch 8.1.1306: Borland support is outdated and doesn't work
commit https://github.com/vim/vim/commit/eae1b91fea74842000fc055afc74fe2e7934c6ee
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 9 15:12:55 2019 +0200
patch 8.1.1306: Borland support is outdated and doesn't work
Problem: Borland support is outdated and doesn't work.
Solution: Remove Borland support, there are other (free) compilers
available. (Thomas Dziedzic, Ken Takata, closes #4364)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 May 2019 15:15:07 +0200 |
parents | ff3c99bd1038 |
children | ef00b6bc186b |
comparison
equal
deleted
inserted
replaced
16605:50115650f6c7 | 16606:7e733046db1d |
---|---|
1301 * Open the GUI window which was created by a call to gui_mch_init(). | 1301 * Open the GUI window which was created by a call to gui_mch_init(). |
1302 */ | 1302 */ |
1303 int | 1303 int |
1304 gui_mch_open(void) | 1304 gui_mch_open(void) |
1305 { | 1305 { |
1306 #ifndef SW_SHOWDEFAULT | |
1307 # define SW_SHOWDEFAULT 10 /* Borland 5.0 doesn't have it */ | |
1308 #endif | |
1309 /* Actually open the window, if not already visible | 1306 /* Actually open the window, if not already visible |
1310 * (may be done already in gui_mch_set_shellsize) */ | 1307 * (may be done already in gui_mch_set_shellsize) */ |
1311 if (!IsWindowVisible(s_hwnd)) | 1308 if (!IsWindowVisible(s_hwnd)) |
1312 ShowWindow(s_hwnd, SW_SHOWDEFAULT); | 1309 ShowWindow(s_hwnd, SW_SHOWDEFAULT); |
1313 | 1310 |
3797 #ifdef __MINGW32__ | 3794 #ifdef __MINGW32__ |
3798 /* | 3795 /* |
3799 * Add a lot of missing defines. | 3796 * Add a lot of missing defines. |
3800 * They are not always missing, we need the #ifndef's. | 3797 * They are not always missing, we need the #ifndef's. |
3801 */ | 3798 */ |
3802 # ifndef _cdecl | |
3803 # define _cdecl | |
3804 # endif | |
3805 # ifndef IsMinimized | 3799 # ifndef IsMinimized |
3806 # define IsMinimized(hwnd) IsIconic(hwnd) | 3800 # define IsMinimized(hwnd) IsIconic(hwnd) |
3807 # endif | 3801 # endif |
3808 # ifndef IsMaximized | 3802 # ifndef IsMaximized |
3809 # define IsMaximized(hwnd) IsZoomed(hwnd) | 3803 # define IsMaximized(hwnd) IsZoomed(hwnd) |
5519 /* | 5513 /* |
5520 * Multi-byte handling, originally by Sung-Hoon Baek. | 5514 * Multi-byte handling, originally by Sung-Hoon Baek. |
5521 * First static functions (no prototypes generated). | 5515 * First static functions (no prototypes generated). |
5522 */ | 5516 */ |
5523 # ifdef _MSC_VER | 5517 # ifdef _MSC_VER |
5524 # include <ime.h> /* Apparently not needed for Cygwin, MingW or Borland. */ | 5518 # include <ime.h> /* Apparently not needed for Cygwin or MinGW. */ |
5525 # endif | 5519 # endif |
5526 # include <imm.h> | 5520 # include <imm.h> |
5527 | 5521 |
5528 /* | 5522 /* |
5529 * handle WM_IME_NOTIFY message | 5523 * handle WM_IME_NOTIFY message |
6270 | 6264 |
6271 /* Flush any output to the screen */ | 6265 /* Flush any output to the screen */ |
6272 void | 6266 void |
6273 gui_mch_flush(void) | 6267 gui_mch_flush(void) |
6274 { | 6268 { |
6275 # if defined(__BORLANDC__) | |
6276 /* | |
6277 * The GdiFlush declaration (in Borland C 5.01 <wingdi.h>) is not a | |
6278 * prototype declaration. | |
6279 * The compiler complains if __stdcall is not used in both declarations. | |
6280 */ | |
6281 BOOL __stdcall GdiFlush(void); | |
6282 # endif | |
6283 | |
6284 #if defined(FEAT_DIRECTX) | 6269 #if defined(FEAT_DIRECTX) |
6285 if (IS_ENABLE_DIRECTX()) | 6270 if (IS_ENABLE_DIRECTX()) |
6286 DWriteContext_Flush(s_dwc); | 6271 DWriteContext_Flush(s_dwc); |
6287 #endif | 6272 #endif |
6288 | 6273 |