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 <rep...@bugs.python.org> <http://bugs.python.org/issue29436> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com