summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-03 23:02:07 (GMT)
committerGitHub <noreply@github.com>2023-07-03 23:02:07 (GMT)
commit2e92edbf6de9578b30cca8e48c4bfb2ba71ae97a (patch)
tree7cb29fc57a2a2ddc93393005fc592346d3e03d6a /Modules/pyexpat.c
parentf6d2bb18aba844f6bb5836797c72eb791b7f3644 (diff)
downloadcpython-2e92edbf6de9578b30cca8e48c4bfb2ba71ae97a.zip
cpython-2e92edbf6de9578b30cca8e48c4bfb2ba71ae97a.tar.gz
cpython-2e92edbf6de9578b30cca8e48c4bfb2ba71ae97a.tar.bz2
gh-106320: Remove private _PyImport C API functions (#106383)
* Remove private _PyImport C API functions: move them to the internal C API (pycore_import.h). * No longer export most of these private functions. * _testcapi avoids private _PyImport_GetModuleAttrString().
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index e3333ff..2891535 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1,4 +1,9 @@
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
+
#include "Python.h"
+#include "pycore_import.h" // _PyImport_SetModule()
#include <ctype.h>
#include "structmember.h" // PyMemberDef