]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-85283: If Py_LIMITED_API is defined, undefine Py_BUILD_CORE (#110725)
authorVictor Stinner <vstinner@python.org>
Wed, 11 Oct 2023 20:47:54 +0000 (22:47 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Oct 2023 20:47:54 +0000 (20:47 +0000)
commit6f4a49942bec5bb15b2ebb7ec19fd43c052305a1
tree9fe40d94f30b24a0682404277dd1efb4f73d3ccf
parent718391f475f2550d99dd794069ca76312f7f6aa6
gh-85283: If Py_LIMITED_API is defined, undefine Py_BUILD_CORE (#110725)

If the Py_LIMITED_API macro is defined, Py_BUILD_CORE,
Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE macros are now
undefined by Python.h.

Only undefine these 3 macros after including "exports.h" which uses
them to define PyAPI_FUNC(), PyAPI_DATA() and PyMODINIT_FUNC macros.

Remove hacks (undefine manually the 3 Py_BUILD_CORE macros) in
Modules/_testcapi/parts.h and Modules/_testclinic_limited.c.
Doc/whatsnew/3.13.rst
Include/pyport.h
Misc/NEWS.d/next/C API/2023-10-11-17-29-52.gh-issue-85283.OsqIBF.rst [new file with mode: 0644]