summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-03-21 20:04:58 +0000
committerBram Moolenaar <Bram@vim.org>2023-03-21 20:04:58 +0000
commitaa26153b6cb8353c1cd64667ec55ab5186fa1036 (patch)
tree369f8da9dcfa82a0de8369b1562354d4a32210b2
parent4a5c39fc52a73d46ac77cf574f765a465befc3c0 (diff)
downloadvim-git-9.0.1420.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.c2
-rw-r--r--src/xdiff/xmacros.h6
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))