[issue29436] Compilation failure against Android NDK r14 beta 2

Chi Hsuan Yen report at bugs.python.org
Fri Feb 3 12:00:56 EST 2017


Chi Hsuan Yen added the comment:

Here's a copy of $ANDROID_NDK/sysroot/usr/include/langinfo.h. (/sysroot/ stores unified headers [1]) To use those headers correctly, packagers have to add -D__ANDROID_API__=XY to CPPFLAGS. On the other hand, __ANDROID_API_FUTURE__ is defined in $ANDROID_NDK/sysroot/usr/include/android/api-level.h:

/*
 * Magic version number for a current development build, which has
 * not yet turned into an official release.
 */
#ifndef __ANDROID_API_FUTURE__
#define __ANDROID_API_FUTURE__ 10000
#endif

As a result nl_langinfo() does not exist in all real API versions.

[1] https://android.googlesource.com/platform/ndk.git/+/master/docs/UnifiedHeaders.md

----------
Added file: http://bugs.python.org/file46504/langinfo.h

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29436>
_______________________________________


More information about the Python-bugs-list mailing list