This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #128359) prevent a const-ness warning on Cygwin
authorTony Cook <tony@develop-help.com>
Tue, 21 Jun 2016 04:23:16 +0000 (14:23 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 21 Jun 2016 04:23:16 +0000 (14:23 +1000)
time64.h

index 6f60bce..78efc73 100644 (file)
--- a/time64.h
+++ b/time64.h
@@ -32,7 +32,8 @@ struct TM64 {
  * Otherwise, if we are on android, use const but
  * not with g++.
  */
-#  if defined(__GLIBC__) || (defined(__ANDROID__) && !defined(__cplusplus)) || defined(__QNX__)
+#  if defined(__GLIBC__) || (defined(__ANDROID__) && !defined(__cplusplus)) \
+    || defined(__QNX__) || defined(__CYGWIN__)
         const
 #  endif
         char    *tm_zone;