diff options
author | Arthur Bergman <arthur@contiller.se> | 2001-08-16 16:22:27 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-16 11:31:00 +0000 |
commit | 32c0e916b39148c319a03b9479ed34c7582453f3 (patch) | |
tree | e06b4e421f6dd4efb62b50020d82afec6ed5a1f6 /op.h | |
parent | 69c89ae7c8e657da80c1a551520c53d86073f166 (diff) | |
download | perl-32c0e916b39148c319a03b9479ed34c7582453f3.tar.gz |
*time_r fixes
Message-ID: <00b901c1264e$1cbe6970$21000a0a@vogw2kdev>
p4raw-id: //depot/perl@11690
Diffstat (limited to 'op.h')
-rw-r--r-- | op.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |