summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorArthur Bergman <arthur@contiller.se>2001-08-16 16:22:27 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-16 11:31:00 +0000
commit32c0e916b39148c319a03b9479ed34c7582453f3 (patch)
treee06b4e421f6dd4efb62b50020d82afec6ed5a1f6 /op.h
parent69c89ae7c8e657da80c1a551520c53d86073f166 (diff)
downloadperl-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/op.h b/op.h
index e92b1d8db4..e55d5465ff 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