changeset 24741:ebc0aae63d9a v8.2.2909

patch 8.2.2909: build error with non-Unix system Commit: https://github.com/vim/vim/commit/e0a7658bc8048aa29ff5c26b377dc5c6816fe422 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 30 14:02:05 2021 +0200 patch 8.2.2909: build error with non-Unix system Problem: Build error with non-Unix system. Solution: Always include limits.h.
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 May 2021 14:15:03 +0200
parents 4b5cdb0e64ab
children 38930147052e
files src/version.c src/vim.h
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2909,
+/**/
     2908,
 /**/
     2907,
--- 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