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
commitd937ac94b886ab4cac8b6faa9cdcec6f03caeacb (patch)
treee06b4e421f6dd4efb62b50020d82afec6ed5a1f6 /op.h
parentd0ade03610a296c4a2645a2e8ca75d290fd4d2e3 (diff)
downloadperl-d937ac94b886ab4cac8b6faa9cdcec6f03caeacb.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