changeset 32178:9493de63a3f6 v9.0.1420

patch 9.0.1420: build failure because SIZE_MAX is not defined Commit: https://github.com/vim/vim/commit/aa26153b6cb8353c1cd64667ec55ab5186fa1036 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 21 20:04:58 2023 +0000 patch 9.0.1420: build failure because SIZE_MAX is not defined Problem: Build failure because SIZE_MAX is not defined. Solution: Define SIZE_MAX when missing. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Mar 2023 21:15:03 +0100
parents 4465f843b1fd
children abedc3302d6f
files src/version.c src/xdiff/xmacros.h
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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))