Remove timelib outdated defines

- TIMELIB_OMIT_STDINT is not used anymore since
  a171f99cf0
- HAVE_GETTIMEOFDAY was defined multiple times in Windows headers
- ext/date/lib/timelib_config.h.win32 does not seem to be used

Closes GH-4400
This commit is contained in:
Peter Kokot 2019-07-14 13:50:05 +02:00
parent 7a6d737de7
commit c72d6da461
4 changed files with 0 additions and 5 deletions

View file

@ -8,8 +8,6 @@ ADD_FLAG('CFLAGS_DATE', "/wd4244");
var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true); var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true);
tl_config.WriteLine("#include \"config.w32.h\""); tl_config.WriteLine("#include \"config.w32.h\"");
tl_config.WriteLine("#include <php_stdint.h>"); tl_config.WriteLine("#include <php_stdint.h>");
tl_config.WriteLine("#define TIMELIB_OMIT_STDINT 1");
tl_config.WriteLine("#define HAVE_GETTIMEOFDAY 1");
tl_config.WriteLine("#include \"zend.h\""); tl_config.WriteLine("#include \"zend.h\"");
tl_config.WriteLine("#define timelib_malloc emalloc"); tl_config.WriteLine("#define timelib_malloc emalloc");
tl_config.WriteLine("#define timelib_realloc erealloc"); tl_config.WriteLine("#define timelib_realloc erealloc");

View file

@ -24,7 +24,6 @@ cat > $ext_builddir/lib/timelib_config.h <<EOF
# include <php_config.h> # include <php_config.h>
#endif #endif
#include <php_stdint.h> #include <php_stdint.h>
#define TIMELIB_OMIT_STDINT 1
#include "zend.h" #include "zend.h"

View file

@ -1 +0,0 @@
# include "config.w32.h"

View file

@ -69,7 +69,6 @@
#define HSREGEX 1 #define HSREGEX 1
#define HAVE_GCVT 1 #define HAVE_GCVT 1
#define HAVE_GETLOGIN 1 #define HAVE_GETLOGIN 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_MEMMOVE 1 #define HAVE_MEMMOVE 1
#define HAVE_PUTENV 1 #define HAVE_PUTENV 1
#define HAVE_REGCOMP 1 #define HAVE_REGCOMP 1