From: Arthur Bergman Date: Thu, 16 Aug 2001 14:22:27 +0000 (+0200) Subject: *time_r fixes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=32c0e916b39148c319a03b9479ed34c7582453f3;p=p5sagit%2Fp5-mst-13.2.git *time_r fixes Message-ID: <00b901c1264e$1cbe6970$21000a0a@vogw2kdev> p4raw-id: //depot/perl@11690 --- diff --git a/op.h b/op.h index e92b1d8..e55d546 100644 --- a/op.h +++ b/op.h @@ -464,7 +464,7 @@ struct loop { 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