summaryrefslogtreecommitdiff
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorxdegaye <xdegaye@gmail.com>2017-11-23 11:44:38 +0100
committerGitHub <noreply@github.com>2017-11-23 11:44:38 +0100
commitc06c22e9a9fb9326e79fcf1551601eacc1fd457d (patch)
treef38029612fd0dcc789f3f7d60ca134911dced9f1 /Include/pyport.h
parent5ad7ef8e420de8a54fb30ed37362194c6b96012c (diff)
downloadcpython-git-c06c22e9a9fb9326e79fcf1551601eacc1fd457d.tar.gz
bpo-29040: Support building Android with Unified Headers (GH-4492)
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 0e82543ac7..f2e247a374 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -784,7 +784,9 @@ extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler;
#endif /* Py_BUILD_CORE */
#ifdef __ANDROID__
-#include <android/api-level.h>
+/* The Android langinfo.h header is not used. */
+#undef HAVE_LANGINFO_H
+#undef CODESET
#endif
/* Maximum value of the Windows DWORD type */