Mercurial > vim
comparison src/vim.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 | 54ffc82f38a8 |
children | ba592f30c082 |
comparison
equal
deleted
inserted
replaced
16605:50115650f6c7 | 16606:7e733046db1d |
---|---|
13 | 13 |
14 // _WIN32 is defined as 1 when the compilation target is 32-bit or 64-bit. | 14 // _WIN32 is defined as 1 when the compilation target is 32-bit or 64-bit. |
15 // Note: If you want to check for 64-bit use the _WIN64 macro. | 15 // Note: If you want to check for 64-bit use the _WIN64 macro. |
16 #if defined(WIN32) || defined(_WIN32) | 16 #if defined(WIN32) || defined(_WIN32) |
17 # define MSWIN | 17 # define MSWIN |
18 #endif | |
19 | |
20 // use fastcall for Borland, when compiling for MS-Windows | |
21 #if defined(__BORLANDC__) && defined(MSWIN) && !defined(DEBUG) | |
22 #if defined(FEAT_PERL) || \ | |
23 defined(FEAT_PYTHON) || \ | |
24 defined(FEAT_PYTHON3) || \ | |
25 defined(FEAT_RUBY) || \ | |
26 defined(FEAT_TCL) || \ | |
27 defined(FEAT_MZSCHEME) || \ | |
28 defined(DYNAMIC_GETTEXT) || \ | |
29 defined(DYNAMIC_ICONV) || \ | |
30 defined(DYNAMIC_IME) || \ | |
31 defined(XPM) | |
32 #pragma option -pc | |
33 # else | |
34 #pragma option -pr | |
35 # endif | |
36 #endif | 18 #endif |
37 | 19 |
38 #ifdef MSWIN | 20 #ifdef MSWIN |
39 # include "vimio.h" | 21 # include "vimio.h" |
40 #endif | 22 #endif |
2161 # endif | 2143 # endif |
2162 # define BROWSE_SAVE 1 /* flag for do_browse() */ | 2144 # define BROWSE_SAVE 1 /* flag for do_browse() */ |
2163 # define BROWSE_DIR 2 /* flag for do_browse() */ | 2145 # define BROWSE_DIR 2 /* flag for do_browse() */ |
2164 #endif | 2146 #endif |
2165 | 2147 |
2166 /* stop using fastcall for Borland */ | |
2167 #if defined(__BORLANDC__) && defined(MSWIN) && !defined(DEBUG) | |
2168 #pragma option -p. | |
2169 #endif | |
2170 | |
2171 #ifdef _MSC_VER | 2148 #ifdef _MSC_VER |
2172 /* Avoid useless warning "conversion from X to Y of greater size". */ | 2149 /* Avoid useless warning "conversion from X to Y of greater size". */ |
2173 #pragma warning(disable : 4312) | 2150 #pragma warning(disable : 4312) |
2174 /* Avoid warning for old style function declarators */ | 2151 /* Avoid warning for old style function declarators */ |
2175 #pragma warning(disable : 4131) | 2152 #pragma warning(disable : 4131) |
2342 # undef NORMAL | 2319 # undef NORMAL |
2343 # undef STRLEN | 2320 # undef STRLEN |
2344 # undef FF | 2321 # undef FF |
2345 # undef OP_DELETE | 2322 # undef OP_DELETE |
2346 # undef OP_JOIN | 2323 # undef OP_JOIN |
2347 # ifdef __BORLANDC__ | |
2348 # define NOPROTO 1 | |
2349 # endif | |
2350 /* remove MAX and MIN, included by glib.h, redefined by sys/param.h */ | 2324 /* remove MAX and MIN, included by glib.h, redefined by sys/param.h */ |
2351 # ifdef MAX | 2325 # ifdef MAX |
2352 # undef MAX | 2326 # undef MAX |
2353 # endif | 2327 # endif |
2354 # ifdef MIN | 2328 # ifdef MIN |
2372 # if (defined(MACOS_X) && !defined(MAC_OS_X_VERSION_10_6)) \ | 2346 # if (defined(MACOS_X) && !defined(MAC_OS_X_VERSION_10_6)) \ |
2373 && defined(bool) && !defined(FEAT_PERL) | 2347 && defined(bool) && !defined(FEAT_PERL) |
2374 # undef bool | 2348 # undef bool |
2375 # endif | 2349 # endif |
2376 | 2350 |
2377 # ifdef __BORLANDC__ | |
2378 /* Borland has the structure stati64 but not _stati64 */ | |
2379 # define _stati64 stati64 | |
2380 # endif | |
2381 #endif | 2351 #endif |
2382 | 2352 |
2383 /* values for vim_handle_signal() that are not a signal */ | 2353 /* values for vim_handle_signal() that are not a signal */ |
2384 #define SIGNAL_BLOCK -1 | 2354 #define SIGNAL_BLOCK -1 |
2385 #define SIGNAL_UNBLOCK -2 | 2355 #define SIGNAL_UNBLOCK -2 |