com php-src: fixed glob compilation with vc12: win32/glob.c

From: Date: Mon, 20 Jan 2014 09:11:31 +0000
Subject: com php-src: fixed glob compilation with vc12: win32/glob.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75704@lists.php.net to get a copy of this message
Commit: 8dd44fee0891d8d73163edd1be7d13880736ae58 Author: Anatol Belski <ab@php.net> Mon, 20 Jan 2014 10:11:31 +0100 Parents: 379f4c0ceb9f84e7e11f2befd48e675200cf7e0d Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8dd44fee0891d8d73163edd1be7d13880736ae58 Log: fixed glob compilation with vc12 Changed paths: M win32/glob.c Diff: diff --git a/win32/glob.c b/win32/glob.c index 1aeac78..8111dab 100644 --- a/win32/glob.c +++ b/win32/glob.c @@ -61,9 +61,16 @@ * Number of matches in the current invocation of glob. */ #ifdef PHP_WIN32 -#define _POSIX_ -#include <limits.h> -#undef _POSIX_ +#if _MSC_VER < 1800 +# define _POSIX_ +# include <limits.h> +# undef _POSIX_ +#else +/* Visual Studio 2013 removed all the _POSIX_ defines, but we depend on some */ +# ifndef ARG_MAX +# define ARG_MAX 14500 +# endif +#endif #ifndef S_ISDIR #define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR) #endif

« previous php.cvs (#75704) next »