aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2010-04-16 06:59:15 +0800
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-04-16 07:00:25 +0800
commit1869e4ebe8d2bfd09110e6a81e9a32f653266aff (patch)
tree24bdffb7158900c2180561156c2b2277d7618213 /mail/message-list.c
parent7793a363608f4c1c68bff611b8b8fa37e4a14705 (diff)
downloadgsoc2013-evolution-1869e4ebe8d2bfd09110e6a81e9a32f653266aff.tar.gz
gsoc2013-evolution-1869e4ebe8d2bfd09110e6a81e9a32f653266aff.tar.zst
gsoc2013-evolution-1869e4ebe8d2bfd09110e6a81e9a32f653266aff.zip
Remove comments that have no point after pthreads dependency disappeared
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 8662999704..321edc3de3 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -75,12 +75,15 @@
#endif
#ifdef G_OS_WIN32
-/* Undefine the similar macro from <pthread.h>,it doesn't check if
- * localtime() returns NULL.
- */
+#ifdef gmtime_r
+#undef gmtime_r
+#endif
+#ifdef localtime_r
#undef localtime_r
+#endif
-/* The localtime() in Microsoft's C library is MT-safe */
+/* The gmtime() and localtime() in Microsoft's C library are MT-safe */
+#define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
#define localtime_r(tp,tmp) (localtime(tp)?(*(tmp)=*localtime(tp),(tmp)):0)
#endif