diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2020-06-16 13:47:35 +0100 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2020-07-18 01:28:15 +0100 |
commit | 926c3ce35a7ef910c55cf0964c39718ef5938ca6 (patch) | |
tree | 1d601edf2be0a498cfa7d5868fae5818d7a9c306 /time64.h | |
parent | 89fbdd0cf3a72a4b599d80ea1227fbd0d5c3fdc9 (diff) | |
download | perl-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.h | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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 }; |