summaryrefslogtreecommitdiff
path: root/time64.h
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2020-06-16 13:47:35 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2020-07-18 01:28:15 +0100
commit926c3ce35a7ef910c55cf0964c39718ef5938ca6 (patch)
tree1d601edf2be0a498cfa7d5868fae5818d7a9c306 /time64.h
parent89fbdd0cf3a72a4b599d80ea1227fbd0d5c3fdc9 (diff)
downloadperl-926c3ce35a7ef910c55cf0964c39718ef5938ca6.tar.gz
time64: declare `tm_zone` as `const char*` unconditionally
We only ever assign from `struct tm` to `struct TM`, not the other way around, so making this const regardless of what `struct tm` has should be safe.
Diffstat (limited to 'time64.h')
-rw-r--r--time64.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/time64.h b/time64.h
index b86e771602..8064ae7cf1 100644
--- 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
};