]> granicus.if.org Git - vim/commitdiff
patch 8.2.2909: build error with non-Unix system v8.2.2909
authorBram Moolenaar <Bram@vim.org>
Sun, 30 May 2021 12:02:05 +0000 (14:02 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 30 May 2021 12:02:05 +0000 (14:02 +0200)
Problem:    Build error with non-Unix system.
Solution:   Always include limits.h.

src/version.c
src/vim.h

index 4b145f199a760022651bd8367b1d503443bfbed4..29500478348167b31835ff40940aac6658c50118 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2909,
 /**/
     2908,
 /**/
index 368cf3256c9aa1d571317d2bb380a36055ff7e2f..515f8d5c2bf1e01487d6d2a26f86718d372f1075 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
@@ -46,9 +46,6 @@
 #  endif
 # endif
 
-// for INT_MAX, LONG_MAX et al.
-# include <limits.h>
-
 /*
  * Cygwin may have fchdir() in a newer release, but in most versions it
  * doesn't work well and avoiding it keeps the binary backward compatible.
@@ -62,6 +59,9 @@
 # define UINT32_TYPEDEF uint32_t
 #endif
 
+// for INT_MAX, LONG_MAX et al.
+#include <limits.h>
+
 #if !defined(UINT32_TYPEDEF)
 # if defined(uint32_t)  // this doesn't catch typedefs, unfortunately
 #  define UINT32_TYPEDEF uint32_t