This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
DynaLoader: use PerlEnv_getenv()
[perl5.git] / time64.h
index 4da148b..8064ae7 100644 (file)
--- a/time64.h
+++ b/time64.h
@@ -28,15 +28,7 @@ struct TM64 {
 #endif
 
 #ifdef HAS_TM_TM_ZONE
-/* If glibc is defined or we are on QNX, use const.
- * Otherwise, if we are on android, use const but
- * not with g++.
- */
-#  if defined(__GLIBC__) || (defined(__ANDROID__) && !defined(__cplusplus)) \
-    || defined(__QNX__) || defined(__CYGWIN__)
-        const
-#  endif
-        char    *tm_zone;
+        const char *tm_zone;
 #endif
 };
 
@@ -53,10 +45,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