]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1420: build failure because SIZE_MAX is not defined v9.0.1420
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Mar 2023 20:04:58 +0000 (20:04 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Mar 2023 20:04:58 +0000 (20:04 +0000)
Problem:    Build failure because SIZE_MAX is not defined.
Solution:   Define SIZE_MAX when missing. (John Marriott)

src/version.c
src/xdiff/xmacros.h

index 379980a4f8208dc6f804abd2b4a30f809e7a8c33..32c39be5d56b78df309ffaafe49f81f2541bbfe2 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1420,
 /**/
     1419,
 /**/
index 8487bb396faa5c6ac984e8295b737b4fbab3f92c..f58cf08e739a88262bd8c90bbed86c543c2439d1 100644 (file)
 #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))