comparison src/vim.h @ 19172:73f893d8776a v8.2.0145

patch 8.2.0145: using #error for compilation errors should be OK now Commit: https://github.com/vim/vim/commit/2c02d3843a103826a3eb44357eaab09b7deb256b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 23 16:52:01 2020 +0100 patch 8.2.0145: using #error for compilation errors should be OK now Problem: Using #error for compilation errors should be OK now. Solution: Use #error. (Ken Takata, closes https://github.com/vim/vim/issues/5299)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jan 2020 17:00:04 +0100
parents 69f0e9b5c107
children 94eda51ba9ba
comparison
equal deleted inserted replaced
19171:5b50aa1a67ca 19172:73f893d8776a
31 * Check if configure correctly managed to find sizeof(int). If this failed, 31 * Check if configure correctly managed to find sizeof(int). If this failed,
32 * it becomes zero. This is likely a problem of not being able to run the 32 * it becomes zero. This is likely a problem of not being able to run the
33 * test program. Other items from configure may also be wrong then! 33 * test program. Other items from configure may also be wrong then!
34 */ 34 */
35 # if (VIM_SIZEOF_INT == 0) 35 # if (VIM_SIZEOF_INT == 0)
36 Error: configure did not run properly. Check auto/config.log. 36 # error configure did not run properly. Check auto/config.log.
37 # endif 37 # endif
38 38
39 # if (defined(__linux__) && !defined(__ANDROID__)) || defined(__CYGWIN__) 39 # if (defined(__linux__) && !defined(__ANDROID__)) || defined(__CYGWIN__)
40 // Needed for strptime(). Needs to be done early, since header files can 40 // Needed for strptime(). Needs to be done early, since header files can
41 // include other header files and end up including time.h, where these symbols 41 // include other header files and end up including time.h, where these symbols
146 #if defined(MACOS_X) && !defined(HAVE_CONFIG_H) 146 #if defined(MACOS_X) && !defined(HAVE_CONFIG_H)
147 # define VIM_SIZEOF_INT __SIZEOF_INT__ 147 # define VIM_SIZEOF_INT __SIZEOF_INT__
148 #endif 148 #endif
149 149
150 #if VIM_SIZEOF_INT < 4 && !defined(PROTO) 150 #if VIM_SIZEOF_INT < 4 && !defined(PROTO)
151 Error: Vim only works with 32 bit int or larger 151 # error Vim only works with 32 bit int or larger
152 #endif 152 #endif
153 153
154 /* 154 /*
155 * #defines for optionals and features 155 * #defines for optionals and features
156 * Also defines FEAT_TINY, FEAT_SMALL, etc. when FEAT_HUGE is defined. 156 * Also defines FEAT_TINY, FEAT_SMALL, etc. when FEAT_HUGE is defined.