From af5bfa98a8c7a11a345e2b7403b792ed970d5cef Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 23 Mar 2010 18:46:57 +0100 Subject: [win32] Avoid warnings about redefined localtime_r --- filter/e-filter-datespec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/filter/e-filter-datespec.c b/filter/e-filter-datespec.c index 00aaad7e01..6ceb09450f 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 -- cgit