]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0145: using #error for compilation errors should be OK now v8.2.0145
authorBram Moolenaar <Bram@vim.org>
Thu, 23 Jan 2020 15:52:01 +0000 (16:52 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 23 Jan 2020 15:52:01 +0000 (16:52 +0100)
Problem:    Using #error for compilation errors should be OK now.
Solution:   Use #error. (Ken Takata, closes #5299)

src/blowfish.c
src/version.c
src/vim.h

index a73b3b6c55c57a09bf7779534ec4db07a4875a60..af5e2fc003436db1cddeb86dc3c93b2537316ca9 100644 (file)
@@ -40,8 +40,7 @@ typedef union {
 # ifdef HAVE_CONFIG_H
    // in configure.ac AC_C_BIGENDIAN() defines WORDS_BIGENDIAN when needed
 # else
-   error!
-   Please change this code to define WORDS_BIGENDIAN for big-endian machines.
+#  error Please change this code to define WORDS_BIGENDIAN for big-endian machines.
 # endif
 #endif
 
index 2b0e7af4a0c070df758ea0b4a03e2b41fa1603e9..fda985ff3248c2362410aa242ee226eb4fe1278c 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    145,
 /**/
     144,
 /**/
index d41db143990b42027bba275223d512e884609304..7ad55aa2499057fcc5ce4f7c4a28317046787b5d 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
@@ -33,7 +33,7 @@
  * test program.  Other items from configure may also be wrong then!
  */
 # 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
 
 # if (defined(__linux__) && !defined(__ANDROID__)) || defined(__CYGWIN__)
 #endif
 
 #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
 
 /*