From b7acebe2154d019b2d3ccf0aa70d9b64c8873a94 Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Thu, 25 Mar 2010 17:05:15 +0100 Subject: Avoid warning about redefined localtime_r --- e-util/e-datetime-format.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e-util/e-datetime-format.c b/e-util/e-datetime-format.c index ec3e4fb8fe..0595d58add 100644 --- a/e-util/e-datetime-format.c +++ b/e-util/e-datetime-format.c @@ -29,6 +29,9 @@ #define KEYS_GROUPNAME "formats" #ifdef G_OS_WIN32 +#ifdef localtime_r +#undef localtime_r +#endif /* The localtime() in Microsoft's C library *is* thread-safe */ #define localtime_r(timep, result) (localtime (timep) ? memcpy ((result), localtime (timep), sizeof (*(result))) : 0) #endif -- cgit