diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-05-30 14:02:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-30 14:02:05 +0200 |
commit | e0a7658bc8048aa29ff5c26b377dc5c6816fe422 (patch) | |
tree | 72d9b872e2825df7d9f4fdf676aa42dff88d1b1f /src/vim.h | |
parent | e5b4486c4279a9674a9bb76130b4db53fb9303a0 (diff) |
patch 8.2.2909: build error with non-Unix systemv8.2.2909
Problem: Build error with non-Unix system.
Solution: Always include limits.h.
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |