Skip to content

Commit 2c02d38

Browse files
committed
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)
1 parent c2a60ae commit 2c02d38

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/blowfish.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ typedef union {
4040
# ifdef HAVE_CONFIG_H
4141
// in configure.ac AC_C_BIGENDIAN() defines WORDS_BIGENDIAN when needed
4242
# else
43-
error!
44-
Please change this code to define WORDS_BIGENDIAN for big-endian machines.
43+
# error Please change this code to define WORDS_BIGENDIAN for big-endian machines.
4544
# endif
4645
#endif
4746

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
145,
745747
/**/
746748
144,
747749
/**/

src/vim.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* test program. Other items from configure may also be wrong then!
3434
*/
3535
# 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.
3737
# endif
3838

3939
# if (defined(__linux__) && !defined(__ANDROID__)) || defined(__CYGWIN__)
@@ -148,7 +148,7 @@
148148
#endif
149149

150150
#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
152152
#endif
153153

154154
/*

0 commit comments

Comments
 (0)