diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/datetime.c | 2 | ||||
-rw-r--r-- | ext/standard/parsedate.y | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index d2fb2a40a0..650fc82b4d 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -53,7 +53,7 @@ char *day_short_names[] = "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; -#if !defined(HAVE_TM_ZONE) && !defined(_TIMEZONE) && !(WIN32||WINNT) +#if !defined(HAVE_TM_ZONE) && !defined(_TIMEZONE) && !defined(HAVE_DECLARED_TIMEZONE) extern time_t timezone; #endif diff --git a/ext/standard/parsedate.y b/ext/standard/parsedate.y index 393207da09..28aabf5e4f 100644 --- a/ext/standard/parsedate.y +++ b/ext/standard/parsedate.y @@ -46,15 +46,10 @@ #include <alloca.h> #endif -#if WIN32||WINNT -# include <time.h> -#else -# if !defined(HAVE_TM_ZONE) && !defined(_TIMEZONE) +#if !defined(HAVE_TM_ZONE) && !defined(_TIMEZONE) && !defined(HAVE_DECLARED_TIMEZONE) extern time_t timezone; -# endif #endif - #define yylhs date_yylhs #define yylen date_yylen #define yydefred date_yydefred |