summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-14 23:09:06 (GMT)
committerGitHub <noreply@github.com>2021-10-14 23:09:06 (GMT)
commit284994762d820d8e09cc019f8f7c4bc501e37dd4 (patch)
tree0ccb6119fb1f2e0b50b1dc9a9b7b75ff71272020 /Misc
parentaf1083e975b9627a5c97013d3a2b9aef0e4b333c (diff)
downloadcpython-284994762d820d8e09cc019f8f7c4bc501e37dd4.zip
cpython-284994762d820d8e09cc019f8f7c4bc501e37dd4.tar.gz
cpython-284994762d820d8e09cc019f8f7c4bc501e37dd4.tar.bz2
bpo-45434: Limited Python.h no longer includes stdio.h (GH-28960)
The <Python.h> header file no longer includes <stdio.h> if the Py_LIMITED_API macro is defined.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2021-10-15-00-30-45.bpo-45434.XLtsbK.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-10-15-00-30-45.bpo-45434.XLtsbK.rst b/Misc/NEWS.d/next/C API/2021-10-15-00-30-45.bpo-45434.XLtsbK.rst
new file mode 100644
index 0000000..4a06635
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2021-10-15-00-30-45.bpo-45434.XLtsbK.rst
@@ -0,0 +1,5 @@
+The ``<Python.h>`` header file no longer includes ``<stdio.h>`` if the
+``Py_LIMITED_API`` macro is defined. Functions expecting ``FILE*`` are excluded
+from the limited C API (:pep:`384`). C extensions using ``<stdio.h>`` must now
+include it explicitly.
+Patch by Victor Stinner.