summaryrefslogtreecommitdiff
path: root/ext/standard/datetime.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/datetime.c')
-rw-r--r--ext/standard/datetime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c
index 11cd604e9b..6ad11f78ad 100644
--- a/ext/standard/datetime.c
+++ b/ext/standard/datetime.c
@@ -65,7 +65,9 @@ static int phpday_tab[2][12] =
#define isleap(year) (((year%4) == 0 && (year%100)!=0) || (year%400)==0)
+#if !(WIN32|WINNT)
extern PHPAPI time_t parsedate(char *p, struct timeval *now);
+#endif
PHP_FUNCTION(time)
{
@@ -556,6 +558,7 @@ PHP_FUNCTION(strftime)
}
#endif
+#if !(WIN32|WINNT)
/* {{{ proto int strtotime(string time, int now) */
PHP_FUNCTION(strtotime)
{
@@ -579,6 +582,7 @@ PHP_FUNCTION(strtotime)
RETURN_LONG(parsedate(timep->value.str.val, NULL));
}
}
+#endif
/* }}} */
/*