Message-ID: <
00b901c1264e$1cbe6970$21000a0a@vogw2kdev>
p4raw-id: //depot/perl@11690
typedef struct {
struct tm* tmbuff;
} REBUF;
-#define localtime(a) localtime_r(a,PL_reentrant_buffer->tmbuff)
-#define gmtime(a) gmtime_r(a,PL_reentrant_buffer->tmbuff)
+#define localtime(a) (localtime_r(a,PL_reentrant_buffer->tmbuff) && PL_reentrant_buffer->tmbuff)
+#define gmtime(a) (gmtime_r(a,PL_reentrant_buffer->tmbuff) && PL_reentrant_buffer->tmbuff)
#endif