diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-01-19 11:08:17 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-01-19 11:08:17 +0100 |
commit | 4c6e94b1e729ad5095947e2c098f9651932479d7 (patch) | |
tree | 6987bacf463e851463a22e226748834f14706825 /time64.h | |
parent | 7bf7986364dc86acb86c5d83e7512b8dbdcb0165 (diff) | |
download | perl-4c6e94b1e729ad5095947e2c098f9651932479d7.tar.gz |
Be sure to call L_R_TZSET before localtime_r()
Diffstat (limited to 'time64.h')
-rw-r--r-- | time64.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,9 +53,9 @@ Time64_T timegm64 (struct TM *); /* Not everyone has gm/localtime_r(), provide a replacement */ #ifdef HAS_LOCALTIME_R -# define LOCALTIME_R(clock, result) localtime_r(clock, result) +# define LOCALTIME_R(clock, result) (L_R_TZSET localtime_r(clock, result)) #else -# define LOCALTIME_R(clock, result) fake_localtime_r(clock, result) +# define LOCALTIME_R(clock, result) (L_R_TZSET fake_localtime_r(clock, result)) #endif #ifdef HAS_GMTIME_R # define GMTIME_R(clock, result) gmtime_r(clock, result) |