1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

fixed glob compilation with vc12

This commit is contained in:
Anatol Belski
2014-01-20 10:11:31 +01:00
parent 379f4c0ceb
commit 8dd44fee08

View File

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