diff options
author | Brian Fraser <fraserbn@gmail.com> | 2013-05-17 23:20:07 -0300 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-23 14:17:31 +0100 |
commit | 48f6bf3125a1cf10c24992f71aa06ec27a718997 (patch) | |
tree | fe01f8cda4eda9515304fca94cf11b8c096d900a /time64.h | |
parent | b200d446d039db61da737bce424ec470309c0f70 (diff) | |
download | perl-48f6bf3125a1cf10c24992f71aa06ec27a718997.tar.gz |
time64.h: Declare tm_zone as const under Android, but not if using C++
https://android.googlesource.com/platform/bionic.git/+/master/libc/include/time.h
Diffstat (limited to 'time64.h')
-rw-r--r-- | time64.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -28,11 +28,13 @@ struct TM64 { #endif #ifdef HAS_TM_TM_ZONE -# ifdef __GLIBC__ - const char *tm_zone; -# else - char *tm_zone; +/* If glibc is defined, use const. Otherwise, + * if we are on android, use const but not with g++ + */ +# if defined(__GLIBC__) || (defined(__ANDROID__) && !defined(__cplusplus)) + const # endif + char *tm_zone; #endif }; |