diff options
author | Victor Stinner <vstinner@python.org> | 2024-05-29 09:37:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 09:37:04 (GMT) |
commit | 7ca74a760a5d3cdf48159f003d4db7c2778e9261 (patch) | |
tree | e24740653b6882a0bafd9c9a01e2e55abd2170a4 /Modules/clinic/pyexpat.c.h | |
parent | cd11ff12ac55f37d38b5ef08c143c78f07da5717 (diff) | |
download | cpython-7ca74a760a5d3cdf48159f003d4db7c2778e9261.zip cpython-7ca74a760a5d3cdf48159f003d4db7c2778e9261.tar.gz cpython-7ca74a760a5d3cdf48159f003d4db7c2778e9261.tar.bz2 |
gh-119661: Add _Py_SINGLETON() include in Argumenet Clinic (#119712)
When the _Py_SINGLETON() is used, Argument Clinic now adds an
explicit "pycore_runtime.h" include to get the macro. Previously, the
macro may or may not be included indirectly by another include.
Diffstat (limited to 'Modules/clinic/pyexpat.c.h')
-rw-r--r-- | Modules/clinic/pyexpat.c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/clinic/pyexpat.c.h b/Modules/clinic/pyexpat.c.h index e23c910..682d848 100644 --- a/Modules/clinic/pyexpat.c.h +++ b/Modules/clinic/pyexpat.c.h @@ -4,7 +4,7 @@ preserve #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE) # include "pycore_gc.h" // PyGC_Head -# include "pycore_runtime.h" // _Py_ID() +# include "pycore_runtime.h" // _Py_SINGLETON() #endif #include "pycore_modsupport.h" // _PyArg_UnpackKeywords() @@ -545,4 +545,4 @@ exit: #ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */ -/*[clinic end generated code: output=51874bfaf4992ba2 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=9f1e9a7192d29976 input=a9049054013a1b77]*/ |