Mercurial > vim
comparison src/vim.h @ 15886:cdb9cbe731b3 v8.1.0949
patch 8.1.0949: MS-windows defines GUI macros different than other systems
commit https://github.com/vim/vim/commit/0472b6d149445579e3a63519b15f099f9adda3f7
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 18 21:41:37 2019 +0100
patch 8.1.0949: MS-windows defines GUI macros different than other systems
Problem: MS-windows defines GUI macros different than other systems.
Solution: Swap FEAT_GUI and FEAT_GUI_MSWIN. (Hirohito Higashi, closes https://github.com/vim/vim/issues/3996)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 18 Feb 2019 21:45:07 +0100 |
parents | 7fad90423bd2 |
children | 46adcb6e27d7 |
comparison
equal
deleted
inserted
replaced
15885:95b27518f4f3 | 15886:cdb9cbe731b3 |
---|---|
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 # ifdef FEAT_GUI | |
19 # define FEAT_GUI_MSWIN | |
20 # endif | |
21 #endif | 18 #endif |
22 | 19 |
23 // use fastcall for Borland, when compiling for MS-Windows | 20 // use fastcall for Borland, when compiling for MS-Windows |
24 #if defined(__BORLANDC__) && defined(MSWIN) && !defined(DEBUG) | 21 #if defined(__BORLANDC__) && defined(MSWIN) && !defined(DEBUG) |
25 #if defined(FEAT_PERL) || \ | 22 #if defined(FEAT_PERL) || \ |