0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2023-03-21 20:04:58 +00:00
parent 4a5c39fc52
commit aa26153b6c
2 changed files with 7 additions and 1 deletions

View File

@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1420,
/**/
1419,
/**/

View File

@ -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))