diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-25 21:26:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-25 21:26:49 +0100 |
commit | c593bec4120f122e8a9129ec461968f1bd214435 (patch) | |
tree | 22369683929b342529fb245d598e4ee9132d917b /src/structs.h | |
parent | e010c720b2024d8c6df45c60c6001c3b4f157de1 (diff) |
patch 8.2.0315: build failure on HP-UX systemv8.2.0315
Problem: Build failure on HP-UX system.
Solution: Use LONG_LONG_MIN instead of LLONG_MIN. Add type casts for switch
statement. (John Marriott)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/structs.h b/src/structs.h index 7830e64433..e68c1f906d 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1279,9 +1279,15 @@ typedef long_u hash_T; // Type for hi_hash #else typedef long long varnumber_T; typedef unsigned long long uvarnumber_T; -# define VARNUM_MIN LLONG_MIN -# define VARNUM_MAX LLONG_MAX -# define UVARNUM_MAX ULLONG_MAX +# ifdef LLONG_MIN +# define VARNUM_MIN LLONG_MIN +# define VARNUM_MAX LLONG_MAX +# define UVARNUM_MAX ULLONG_MAX +# else +# define VARNUM_MIN LONG_LONG_MIN +# define VARNUM_MAX LONG_LONG_MAX +# define UVARNUM_MAX ULONG_LONG_MAX +# endif #endif typedef double float_T; |