[evolution/gnome-2-30] Avoid warning about redefined localtime_r
- From: Fridrich Strba <strba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-30] Avoid warning about redefined localtime_r
- Date: Wed, 7 Apr 2010 21:52:40 +0000 (UTC)
commit f07352c5b344cb7f254a41695909622a759efe86
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date: Thu Mar 25 17:05:15 2010 +0100
Avoid warning about redefined localtime_r
e-util/e-datetime-format.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-datetime-format.c b/e-util/e-datetime-format.c
index ec3e4fb..0595d58 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]