Skip to content

Commit e0a7658

Browse files
committed
patch 8.2.2909: build error with non-Unix system
Problem: Build error with non-Unix system. Solution: Always include limits.h.
1 parent e5b4486 commit e0a7658

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2909,
753755
/**/
754756
2908,
755757
/**/

src/vim.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
# endif
4747
# endif
4848

49-
// for INT_MAX, LONG_MAX et al.
50-
# include <limits.h>
51-
5249
/*
5350
* Cygwin may have fchdir() in a newer release, but in most versions it
5451
* doesn't work well and avoiding it keeps the binary backward compatible.
@@ -62,6 +59,9 @@
6259
# define UINT32_TYPEDEF uint32_t
6360
#endif
6461

62+
// for INT_MAX, LONG_MAX et al.
63+
#include <limits.h>
64+
6565
#if !defined(UINT32_TYPEDEF)
6666
# if defined(uint32_t) // this doesn't catch typedefs, unfortunately
6767
# define UINT32_TYPEDEF uint32_t

0 commit comments

Comments
 (0)