0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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 #5299)
This commit is contained in:
Bram Moolenaar 2020-01-23 16:52:01 +01:00
parent c2a60ae10e
commit 2c02d3843a
3 changed files with 5 additions and 4 deletions

View File

@ -40,8 +40,7 @@ typedef union {
# ifdef HAVE_CONFIG_H # ifdef HAVE_CONFIG_H
// in configure.ac AC_C_BIGENDIAN() defines WORDS_BIGENDIAN when needed // in configure.ac AC_C_BIGENDIAN() defines WORDS_BIGENDIAN when needed
# else # else
error! # error Please change this code to define WORDS_BIGENDIAN for big-endian machines.
Please change this code to define WORDS_BIGENDIAN for big-endian machines.
# endif # endif
#endif #endif

View File

@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
145,
/**/ /**/
144, 144,
/**/ /**/

View File

@ -33,7 +33,7 @@
* test program. Other items from configure may also be wrong then! * test program. Other items from configure may also be wrong then!
*/ */
# if (VIM_SIZEOF_INT == 0) # if (VIM_SIZEOF_INT == 0)
Error: configure did not run properly. Check auto/config.log. # error configure did not run properly. Check auto/config.log.
# endif # endif
# if (defined(__linux__) && !defined(__ANDROID__)) || defined(__CYGWIN__) # if (defined(__linux__) && !defined(__ANDROID__)) || defined(__CYGWIN__)
@ -148,7 +148,7 @@
#endif #endif
#if VIM_SIZEOF_INT < 4 && !defined(PROTO) #if VIM_SIZEOF_INT < 4 && !defined(PROTO)
Error: Vim only works with 32 bit int or larger # error Vim only works with 32 bit int or larger
#endif #endif
/* /*