Skip to content

Commit 7cedae3

Browse files
arpadffychrisbra
authored andcommitted
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.arpadffy@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent b42b9fc commit 7cedae3

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1234,
707709
/**/
708710
1233,
709711
/**/

src/vim.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@
8787
# endif
8888
#endif
8989

90+
// C89 does not define SIZE_MAX
91+
#if defined(__hpux) || defined(VMS)
92+
# ifndef SIZE_MAX
93+
# define SIZE_MAX ((size_t)(-1))
94+
# endif
95+
#endif
96+
9097
// user ID of root is usually zero, but not for everybody
9198
#ifdef __TANDEM
9299
# ifndef _TANDEM_SOURCE

0 commit comments

Comments
 (0)