Remove comments that have no point after pthreads dependency disappeared

This commit is contained in:
Fridrich Štrba
2010-04-16 00:59:15 +02:00
parent 7793a36360
commit 1869e4ebe8
3 changed files with 13 additions and 10 deletions

View File

@ -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)

View File

@ -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

View File

@ -37,11 +37,12 @@
#include "e-timezone-dialog.h"
#ifdef G_OS_WIN32
/* Undef the similar macros from pthread.h, they don't check if
* gmtime() and localtime() return NULL.
*/
#ifdef gmtime_r
#undef gmtime_r
#endif
#ifdef localtime_r
#undef localtime_r
#endif
/* The gmtime() and localtime() in Microsoft's C library are MT-safe */
#define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)