summaryrefslogtreecommitdiff
path: root/ext/standard/parsedate.y
diff options
context:
space:
mode:
authorSam Ruby <rubys@php.net>1999-11-29 14:04:16 +0000
committerSam Ruby <rubys@php.net>1999-11-29 14:04:16 +0000
commit0383909477e0a1f62baa60bafb4a4a9207521402 (patch)
treeb847e30500cddb3d32172057de2f8724e16cf36f /ext/standard/parsedate.y
parent6c6c0a630c48190df5fa47567699760054748f9a (diff)
downloadphp-git-0383909477e0a1f62baa60bafb4a4a9207521402.tar.gz
Use thread-safe versions of localtime and gmtime on Win32 too
Diffstat (limited to 'ext/standard/parsedate.y')
-rw-r--r--ext/standard/parsedate.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/parsedate.y b/ext/standard/parsedate.y
index e8dfa8c80b..a7f61648f4 100644
--- a/ext/standard/parsedate.y
+++ b/ext/standard/parsedate.y
@@ -50,7 +50,9 @@
#endif
#if WIN32||WINNT
-#include <time.h>
+# include <time.h>
+# define _PHP_H
+# include "php_reentrancy.h"
#else
# if !defined(HAVE_TM_ZONE) && !defined(_TIMEZONE)
extern time_t timezone;