comparison src/os_win32.h @ 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 7ae2396cef62
children 9f51d0cef8da
comparison
equal deleted inserted replaced
16605:50115650f6c7 16606:7e733046db1d
51 #define HAVE_QSORT 51 #define HAVE_QSORT
52 #define HAVE_ST_MODE /* have stat.st_mode */ 52 #define HAVE_ST_MODE /* have stat.st_mode */
53 53
54 #define FEAT_SHORTCUT /* resolve shortcuts */ 54 #define FEAT_SHORTCUT /* resolve shortcuts */
55 55
56 #if (!defined(__BORLANDC__) || __BORLANDC__ >= 0x550) \ 56 #if (!defined(_MSC_VER) || _MSC_VER > 1020)
57 && (!defined(_MSC_VER) || _MSC_VER > 1020)
58 /* 57 /*
59 * Access Control List (actually security info). 58 * Access Control List (actually security info).
60 * Borland has the acl stuff only in version 5.5 and later. 59 * MSVC has acl stuff only in 5.0, not in 4.2, don't know about 4.3.
61 * MSVC in 5.0, not in 4.2, don't know about 4.3.
62 */ 60 */
63 # define HAVE_ACL 61 # define HAVE_ACL
64 #endif 62 #endif
65 63
66 #define USE_FNAME_CASE /* adjust case of file names */ 64 #define USE_FNAME_CASE /* adjust case of file names */
140 #endif 138 #endif
141 #ifndef IO_REPARSE_TAG_SYMLINK 139 #ifndef IO_REPARSE_TAG_SYMLINK
142 # define IO_REPARSE_TAG_SYMLINK 0xA000000C 140 # define IO_REPARSE_TAG_SYMLINK 0xA000000C
143 #endif 141 #endif
144 142
145 #if defined(_MSC_VER) || defined(__BORLANDC__) 143 #if defined(_MSC_VER)
146 /* Support for __try / __except. All versions of MSVC and Borland C are 144 /* Support for __try / __except. All versions of MSVC are
147 * expected to have this. Any other compilers that support it? */ 145 * expected to have this. Any other compilers that support it? */
148 # define HAVE_TRY_EXCEPT 1 146 # define HAVE_TRY_EXCEPT 1
149 # include <malloc.h> /* for _resetstkoflw() */ 147 # include <malloc.h> /* for _resetstkoflw() */
150 # if defined(_MSC_VER) && (_MSC_VER >= 1300) 148 # if defined(_MSC_VER) && (_MSC_VER >= 1300)
151 # define RESETSTKOFLW _resetstkoflw 149 # define RESETSTKOFLW _resetstkoflw
204 202
205 #ifndef HAVE_SETENV 203 #ifndef HAVE_SETENV
206 # define HAVE_SETENV 204 # define HAVE_SETENV
207 #endif 205 #endif
208 #define mch_getenv(x) (char_u *)getenv((char *)(x)) 206 #define mch_getenv(x) (char_u *)getenv((char *)(x))
209 #ifdef __BORLANDC__ 207 #define vim_mkdir(x, y) mch_mkdir(x)
210 # define vim_mkdir(x, y) mkdir(x)
211 #else
212 # define vim_mkdir(x, y) mch_mkdir(x)
213 #endif
214 208
215 /* Enable common dialogs input unicode from IME if possible. */ 209 /* Enable common dialogs input unicode from IME if possible. */
216 #define pDispatchMessage DispatchMessageW 210 #define pDispatchMessage DispatchMessageW
217 #define pGetMessage GetMessageW 211 #define pGetMessage GetMessageW
218 #define pIsDialogMessage IsDialogMessageW 212 #define pIsDialogMessage IsDialogMessageW