patch 9.1.1234: Compile error when SIZE_MAX is not defined

Commit: 
https://github.com/vim/vim/commit/7cedae3ec3be2af24a7e717e4cb4b8658bc4e9b7
Author: Zoltan Arpadffy <zoltan.arpad...@gmail.com>
Date:   Mon Mar 24 20:31:12 2025 +0100

    patch 9.1.1234: Compile error when SIZE_MAX is not defined
    
    Problem:  Compile error when SIZE_MAX is not defined
    Solution: Define SIZE_MAX (Zoltan Arpadffy)
    
    related: #16962
    
    Signed-off-by: Zoltan Arpadffy <zoltan.arpad...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/version.c b/src/version.c
index 00d10e86d..89359fbe9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1234,
 /**/
     1233,
 /**/
diff --git a/src/vim.h b/src/vim.h
index dd04f6504..55b901132 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -87,6 +87,13 @@
 # endif
 #endif
 
+// C89 does not define SIZE_MAX
+#if defined(__hpux) || defined(VMS)
+# ifndef SIZE_MAX
+#  define SIZE_MAX ((size_t)(-1))
+# endif
+#endif
+
 // user ID of root is usually zero, but not for everybody
 #ifdef __TANDEM
 # ifndef _TANDEM_SOURCE

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1twnjN-00DH8G-TM%40256bit.org.

Raspunde prin e-mail lui