Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tm_zone can be const in some systems #5

Open
Hugmeir opened this issue Nov 19, 2013 · 0 comments
Open

tm_zone can be const in some systems #5

Hugmeir opened this issue Nov 19, 2013 · 0 comments

Comments

@Hugmeir
Copy link

Hugmeir commented Nov 19, 2013

It appears that in glibc and QNX NTO[0], tm_zone is always const.
Meanwhile, on Android[1] tm_zone is const, but somehow loses its constness if you use C++[2].

/* 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__)
        const
#  endif

[0] The header is in Blackberry's NDK, but I honestly can't find a public repo -- even the link in the source code gives me a 404
[1] https://github.com/android/platform_bionic/blob/master/libc/include/time.h
[2] No clue. Found this when trying to cross-compile Perl using g++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant