From 4ae7321f3e88a3454580690a71a6e374c8de4c6b Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Thu, 30 Jun 2005 23:03:36 +0000 Subject: [PATCH] Fix Win32 build --- ext/date/lib/parse_date.c | 1 - ext/date/lib/timelib.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) 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); -- 2.40.0