From 11efa2377cf46f1e24d058ca990bbfd667087b5b Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 22 Feb 2008 09:10:02 +0000 Subject: [PATCH] Use timezone & daylight instead of _timezone and _daylight on *nix. --- src/xpdev/unixtime.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/xpdev/unixtime.c b/src/xpdev/unixtime.c index a27c1f15dd..380646f548 100644 --- a/src/xpdev/unixtime.c +++ b/src/xpdev/unixtime.c @@ -11,8 +11,13 @@ #define USE_SNPRINTF /* we don't need safe_snprintf for this project */ #include "genwrap.h" -#define TIMEZONE _timezone -#define DAYLIGHT _daylight +#if !defined(__unix__) + #define TIMEZONE _timezone + #define DAYLIGHT _daylight +#else + #define TIMEZONE timezone + #define DAYLIGHT daylight +#endif /****************************************************************************/ /* Converts a date string in format MM/DD/YY into unix time format */ -- GitLab