From cc33e8f5363861916100de8d9aa1de0f402d7f5d Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Wed, 15 Jun 2005 09:02:28 +0000 Subject: [PATCH] Nuke PHP_ prefix from timelib --- ext/date/lib/parse_date.re | 2 +- ext/date/lib/parse_tz.c | 2 +- ext/date/lib/resource/parse_date.re | 2 +- ext/date/lib/timelib_structs.h | 4 ++-- ext/date/lib/unixtime2tm.c | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/date/lib/parse_date.re b/ext/date/lib/parse_date.re index a5d5b591e6..dd383e6c9a 100644 --- a/ext/date/lib/parse_date.re +++ b/ext/date/lib/parse_date.re @@ -23,7 +23,7 @@ #include #include "datetime.h" -#ifdef PHP_WIN32 +#if defined(_MSC_VER) #define strcasecmp stricmp #define strtoll(s, f, b) _atoi64(s) #endif diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c index f5eac2aeac..6e98a1b9d5 100644 --- a/ext/date/lib/parse_tz.c +++ b/ext/date/lib/parse_tz.c @@ -19,7 +19,7 @@ /* $Id$ */ #include -#ifdef PHP_WIN32 +#ifdef WIN32 #include #else #include diff --git a/ext/date/lib/resource/parse_date.re b/ext/date/lib/resource/parse_date.re index a5d5b591e6..dd383e6c9a 100644 --- a/ext/date/lib/resource/parse_date.re +++ b/ext/date/lib/resource/parse_date.re @@ -23,7 +23,7 @@ #include #include "datetime.h" -#ifdef PHP_WIN32 +#if defined(_MSC_VER) #define strcasecmp stricmp #define strtoll(s, f, b) _atoi64(s) #endif diff --git a/ext/date/lib/timelib_structs.h b/ext/date/lib/timelib_structs.h index f3bf325091..52dc21bf21 100644 --- a/ext/date/lib/timelib_structs.h +++ b/ext/date/lib/timelib_structs.h @@ -24,13 +24,13 @@ #include #include #include -#ifdef PHP_WIN32 +#ifdef WIN32 #include #else #include #endif -#if defined(PHP_WIN32) && _MSC_VER < 1300 +#if defined(_MSC_VER) && _MSC_VER < 1300 typedef unsigned __int64 timelib_ull; typedef __int64 timelib_sll; #else diff --git a/ext/date/lib/unixtime2tm.c b/ext/date/lib/unixtime2tm.c index a198b405a9..315b375a75 100644 --- a/ext/date/lib/unixtime2tm.c +++ b/ext/date/lib/unixtime2tm.c @@ -23,9 +23,9 @@ #include #if defined(_MSC_VER) -#define PHP_LL_CONST(n) n ## i64 +#define TIMELIB_LL_CONST(n) n ## i64 #else -#define PHP_LL_CONST(n) n ## ll +#define TIMELIB_LL_CONST(n) n ## ll #endif #include "datetime.h" @@ -67,7 +67,7 @@ void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts) /* Guess why this might be for, it has to do with a pope ;-). It's also * only valid for Great Brittain and it's colonies. It needs fixing for * other locales. *sigh*, why is this crap so complex! */ - if (ts <= PHP_LL_CONST(-6857352000)) { + if (ts <= TIMELIB_LL_CONST(-6857352000)) { tmp_days -= 11; } -- 2.50.1