summaryrefslogtreecommitdiff
path: root/time64.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-03-14 22:34:00 -0600
committerKarl Williamson <khw@cpan.org>2020-03-18 18:08:57 -0600
commit4684bf2ccbe1179cb6494d854baf7a1cd0066133 (patch)
treefc7ba739124f42d349801ce52248e2ca7a931596 /time64.h
parent9b5e0ded7d76e82aec2567cf092ea3a0291eacba (diff)
downloadperl-4684bf2ccbe1179cb6494d854baf7a1cd0066133.tar.gz
time64.[ch]: Inline only use of a macro and fcn
This macro is now only used once, and was the only caller of a helper function. Thus both can be removed and inlined, simplifying things. Further, most of the function's functionality can be removed, since it was an attempt to simulate localtime_r(), which is now automatically furnished by reentrant.[ch] if needed.
Diffstat (limited to 'time64.h')
-rw-r--r--time64.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/time64.h b/time64.h
index c0657665e9..4da148b9aa 100644
--- a/time64.h
+++ b/time64.h
@@ -53,17 +53,10 @@ struct TM64 {
struct TM *Perl_gmtime64_r (const Time64_T *, struct TM *);
struct TM *Perl_localtime64_r (const Time64_T *, struct TM *);
-
-/* Not everyone has gm/localtime_r(), provide a replacement */
-#ifdef HAS_LOCALTIME_R
-# define LOCALTIME_R(clock, result) (L_R_TZSET localtime_r(clock, result))
-#else
-# define LOCALTIME_R(clock, result) (L_R_TZSET S_localtime_r(clock, result))
-#endif
+/* Not everyone has gmtime_r(), provide a replacement */
#ifdef HAS_GMTIME_R
# define GMTIME_R(clock, result) gmtime_r(clock, result)
#else
# define GMTIME_R(clock, result) S_gmtime_r(clock, result)
#endif
-
#endif