summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/pyexpat.c.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-05-29 09:37:04 (GMT)
committerGitHub <noreply@github.com>2024-05-29 09:37:04 (GMT)
commit7ca74a760a5d3cdf48159f003d4db7c2778e9261 (patch)
treee24740653b6882a0bafd9c9a01e2e55abd2170a4 /Modules/clinic/pyexpat.c.h
parentcd11ff12ac55f37d38b5ef08c143c78f07da5717 (diff)
downloadcpython-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.h4
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]*/