0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.2909: build error with non-Unix system

Problem:    Build error with non-Unix system.
Solution:   Always include limits.h.
This commit is contained in:
Bram Moolenaar
2021-05-30 14:02:05 +02:00
parent e5b4486c42
commit e0a7658bc8
2 changed files with 5 additions and 3 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2909,
/**/ /**/
2908, 2908,
/**/ /**/

View File

@@ -46,9 +46,6 @@
# endif # endif
# 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 * 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. * doesn't work well and avoiding it keeps the binary backward compatible.
@@ -62,6 +59,9 @@
# define UINT32_TYPEDEF uint32_t # define UINT32_TYPEDEF uint32_t
#endif #endif
// for INT_MAX, LONG_MAX et al.
#include <limits.h>
#if !defined(UINT32_TYPEDEF) #if !defined(UINT32_TYPEDEF)
# if defined(uint32_t) // this doesn't catch typedefs, unfortunately # if defined(uint32_t) // this doesn't catch typedefs, unfortunately
# define UINT32_TYPEDEF uint32_t # define UINT32_TYPEDEF uint32_t