diff options
author | Karl Williamson <khw@cpan.org> | 2020-03-15 10:19:18 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-18 18:08:57 -0600 |
commit | 315d3362b22a8ecd0216505ee29f2cad0d9f3182 (patch) | |
tree | b545e726a03c289b696f70b550aa6b16599f3b2f /time64.h | |
parent | 4684bf2ccbe1179cb6494d854baf7a1cd0066133 (diff) | |
download | perl-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.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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 |