diff options
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r-- | mail/em-composer-utils.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 3bd5021f12..7e8d2b1dad 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -60,10 +60,9 @@ #include "em-event.h" #ifdef G_OS_WIN32 -/* Undef the similar macro from pthread.h, it doesn't check if - * gmtime() returns NULL. - */ +#ifdef gmtime_r #undef gmtime_r +#endif /* The gmtime() in Microsoft's C library is MT-safe */ #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0) |