Skip to content

Commit d29a79a

Browse files
committed
add defines not defined by MSVC
1 parent a362edf commit d29a79a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

win32/glob.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@
6666
# define ARG_MAX 14500
6767
# endif
6868
#endif
69+
# ifndef PATH_MAX
70+
# define PATH_MAX MAXPATHLEN
71+
# endif
72+
/* Windows defines SIZE_MAX but not SSIZE_MAX */
73+
# ifndef SSIZE_MAX
74+
# ifdef _WIN64
75+
# define SSIZE_MAX _I64_MAX
76+
# else
77+
# define SSIZE_MAX INT_MAX
78+
# endif
79+
# endif
6980
#endif
7081

7182
#include "php.h"

0 commit comments

Comments
 (0)