From: foobar Date: Mon, 12 Dec 2005 19:44:27 +0000 (+0000) Subject: - Fix build failure under win32 X-Git-Tag: RELEASE_1_0_4~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a44f346a307929f698fb5a4e31d8b473d1eecd4;p=php - Fix build failure under win32 --- diff --git a/ext/date/lib/timelib.h b/ext/date/lib/timelib.h index 74c3ef797a..127275903e 100644 --- a/ext/date/lib/timelib.h +++ b/ext/date/lib/timelib.h @@ -38,6 +38,10 @@ #define strcasecmp stricmp #endif +#if defined(_MSC_VER) && !defined(strncasecmp) +#define strncasecmp strnicmp +#endif + /* From dow.c */ timelib_sll timelib_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d); timelib_sll timelib_iso_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d);