commit | 6f4a49942bec5bb15b2ebb7ec19fd43c052305a1 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Wed Oct 11 22:47:54 2023 +0200 |
committer | GitHub <noreply@github.com> | Wed Oct 11 20:47:54 2023 +0000 |
tree | 9fe40d94f30b24a0682404277dd1efb4f73d3ccf | |
parent | 718391f475f2550d99dd794069ca76312f7f6aa6 [diff] |
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.