[evolution] [win32] Avoid warnings about redefined localtime_r



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]