diff options
author | Zeev Suraski <zeev@php.net> | 1999-07-24 16:52:00 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-07-24 16:52:00 +0000 |
commit | 68e32f6ac37eebe70c0ebbbbfaefceeafbaa6d73 (patch) | |
tree | 06c480c4c98160473f8971d676d1b859336d16c2 /ext/standard/parsedate.y | |
parent | 24eb90c524e36e9bbdfda0cced94bf239ee026ec (diff) | |
download | php-git-68e32f6ac37eebe70c0ebbbbfaefceeafbaa6d73.tar.gz |
* Make Win32 build work again
* Make error_reporting value prior to the standard initialization be
set so that errors show up
Diffstat (limited to 'ext/standard/parsedate.y')
-rw-r--r-- | ext/standard/parsedate.y | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/standard/parsedate.y b/ext/standard/parsedate.y index df75728bb0..6552c517a2 100644 --- a/ext/standard/parsedate.y +++ b/ext/standard/parsedate.y @@ -24,6 +24,10 @@ # include "php_config.h" #endif +#if WIN32||WINNT +#include <malloc.h> +#endif + #include <stdio.h> #include <sys/types.h> #include <time.h> @@ -41,10 +45,12 @@ #include <alloca.h> #endif -#ifndef HAVE_TM_ZONE -#ifndef _TIMEZONE +#if WIN32||WINNT +#include <time.h> +#else +# if !defined(HAVE_TM_ZONE) && !defined(_TIMEZONE) extern time_t timezone; -#endif +# endif #endif #define yylhs date_yylhs |