aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2010-03-26 00:05:15 +0800
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-04-08 05:47:43 +0800
commitf07352c5b344cb7f254a41695909622a759efe86 (patch)
treee78eb262206a759cdcf35d19bfbc4074c4bfd095
parentd358da9481a125e7eefa80cde88a6bed0c1b7fc3 (diff)
downloadgsoc2013-evolution-f07352c5b344cb7f254a41695909622a759efe86.tar.gz
gsoc2013-evolution-f07352c5b344cb7f254a41695909622a759efe86.tar.zst
gsoc2013-evolution-f07352c5b344cb7f254a41695909622a759efe86.zip
Avoid warning about redefined localtime_r
-rw-r--r--e-util/e-datetime-format.c3
1 files changed, 3 insertions, 0 deletions
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