From: Bram Moolenaar Date: Sun, 30 May 2021 12:02:05 +0000 (+0200) Subject: patch 8.2.2909: build error with non-Unix system X-Git-Tag: v8.2.2909 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0a7658bc8048aa29ff5c26b377dc5c6816fe422;p=vim patch 8.2.2909: build error with non-Unix system Problem: Build error with non-Unix system. Solution: Always include limits.h. --- diff --git a/src/version.c b/src/version.c index 4b145f199..295004783 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2909, /**/ 2908, /**/ diff --git a/src/vim.h b/src/vim.h index 368cf3256..515f8d5c2 100644 --- a/src/vim.h +++ b/src/vim.h @@ -46,9 +46,6 @@ # endif # endif -// for INT_MAX, LONG_MAX et al. -# include - /* * 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 + #if !defined(UINT32_TYPEDEF) # if defined(uint32_t) // this doesn't catch typedefs, unfortunately # define UINT32_TYPEDEF uint32_t