summaryrefslogtreecommitdiff
path: root/time64.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-03-15 10:19:18 -0600
committerKarl Williamson <khw@cpan.org>2020-03-18 18:08:57 -0600
commit315d3362b22a8ecd0216505ee29f2cad0d9f3182 (patch)
treeb545e726a03c289b696f70b550aa6b16599f3b2f /time64.h
parent4684bf2ccbe1179cb6494d854baf7a1cd0066133 (diff)
downloadperl-315d3362b22a8ecd0216505ee29f2cad0d9f3182.tar.gz
time64.[ch]: Inline only use of another macro
This macro is now only used once. It is accessible outside perl because it is in time64.h, but isn't used in cpan. Remove it and place its expansion in time64.c. Part of the expansion called another function. That function can be removed and the expansion simplified, since gmtime() is now automatically converted into gmtime_r() if available and needed.
Diffstat (limited to 'time64.h')
-rw-r--r--time64.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/time64.h b/time64.h
index 4da148b9aa..b86e771602 100644
--- a/time64.h
+++ b/time64.h
@@ -53,10 +53,4 @@ 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 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