[evolution] [win32] Avoid warnings about redefined localtime_r
- From: Fridrich Strba <strba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] [win32] Avoid warnings about redefined localtime_r
- Date: Tue, 23 Mar 2010 17:59:54 +0000 (UTC)
commit af5bfa98a8c7a11a345e2b7403b792ed970d5cef
Author: Fridrich Strba <fridrich strba bluewin ch>
Date: Tue Mar 23 18:46:57 2010 +0100
[win32] Avoid warnings about redefined localtime_r
filter/e-filter-datespec.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/filter/e-filter-datespec.c b/filter/e-filter-datespec.c
index 00aaad7..6ceb094 100644
--- a/filter/e-filter-datespec.c
+++ b/filter/e-filter-datespec.c
@@ -41,6 +41,9 @@
#include "e-filter-part.h"
#ifdef G_OS_WIN32
+#ifdef localtime_r
+#undef localtime_r
+#endif
#define localtime_r(tp,tmp) memcpy(tmp,localtime(tp),sizeof(struct tm))
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]