summaryrefslogtreecommitdiff
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-06-29 15:31:38 +0900
committerGitHub <noreply@github.com>2017-06-29 15:31:38 +0900
commit6b42eb17649bed9615b6e6cecaefdb2f46990b2c (patch)
treeda7ca04b814551d5834b84281020d8fd49015035 /pyconfig.h.in
parent7526cadd64566725ffc56071a7208828a46ddbd8 (diff)
downloadcpython-git-6b42eb17649bed9615b6e6cecaefdb2f46990b2c.tar.gz
bpo-29585: Fix sysconfig.get_config_var("PYTHONFRAMEWORK") (GH-2483)
`PYTHONFRAMEWORK` is defined in `Makefile` and it shoulnd't be used in `pyconfig.h`. `sysconfig.py --generate-posix-vars` reads config vars from Makefile and `pyconfig.h`. Conflicting variables should be avoided. Especially, string config variables in Makefile are unquoted, but in `pyconfig.h` are keep quoted. So it should be private (starts with underscore).
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index f7c50eadca..b4d1f1b503 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -1247,9 +1247,6 @@
/* Define as the preferred size in bits of long digits */
#undef PYLONG_BITS_IN_DIGIT
-/* framework name */
-#undef PYTHONFRAMEWORK
-
/* Define if you want to coerce the C locale to a UTF-8 based locale */
#undef PY_COERCE_C_LOCALE
@@ -1464,6 +1461,9 @@
/* Define if you have POSIX threads, and your system does not define that. */
#undef _POSIX_THREADS
+/* framework name */
+#undef _PYTHONFRAMEWORK
+
/* Define to force use of thread-safe errno, h_errno, and other functions */
#undef _REENTRANT