diff options
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/lib/parse_date.c | 1 | ||||
-rw-r--r-- | ext/date/lib/timelib.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ext/date/lib/parse_date.c b/ext/date/lib/parse_date.c index f5c4ca34e7..8872f02410 100644 --- a/ext/date/lib/parse_date.c +++ b/ext/date/lib/parse_date.c @@ -34,7 +34,6 @@ #endif #if defined(_MSC_VER) -# define strcasecmp stricmp # define strtoll(s, f, b) _atoi64(s) #elif !defined(HAVE_STRTOLL) # if defined(HAVE_ATOLL) diff --git a/ext/date/lib/timelib.h b/ext/date/lib/timelib.h index 79061b36f3..5bda8b93cf 100644 --- a/ext/date/lib/timelib.h +++ b/ext/date/lib/timelib.h @@ -34,6 +34,10 @@ #define LONG_MIN (- LONG_MAX - 1) #endif +#if defined(_MSC_VER) +#define strcasecmp stricmp +#endif + /* From dow.c */ timelib_sll timelib_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d); timelib_sll timelib_day_of_year(timelib_sll y, timelib_sll m, timelib_sll d); |