diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-03-21 20:04:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-21 20:04:58 +0000 |
commit | aa26153b6cb8353c1cd64667ec55ab5186fa1036 (patch) | |
tree | 369f8da9dcfa82a0de8369b1562354d4a32210b2 | |
parent | 4a5c39fc52a73d46ac77cf574f765a465befc3c0 (diff) | |
download | vim-git-aa26153b6cb8353c1cd64667ec55ab5186fa1036.tar.gz |
patch 9.0.1420: build failure because SIZE_MAX is not definedv9.0.1420
Problem: Build failure because SIZE_MAX is not defined.
Solution: Define SIZE_MAX when missing. (John Marriott)
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/xdiff/xmacros.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c index 379980a4f..32c39be5d 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1420, +/**/ 1419, /**/ 1418, diff --git a/src/xdiff/xmacros.h b/src/xdiff/xmacros.h index 8487bb396..f58cf08e7 100644 --- a/src/xdiff/xmacros.h +++ b/src/xdiff/xmacros.h @@ -24,7 +24,11 @@ #define XMACROS_H - +#ifdef __hpux +# ifndef SIZE_MAX +# define SIZE_MAX ((size_t)(-1)) +# endif +#endif #define XDL_MIN(a, b) ((a) < (b) ? (a): (b)) #define XDL_MAX(a, b) ((a) > (b) ? (a): (b)) |