From bc02eac9d2cb36faffc5027b7ce09e6dd0922a7f Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 13 Jan 2022 15:54:36 -0700 Subject: bpo-46370: Move the static initializer for _PyRuntime to its own header file. (gh-30587) https://bugs.python.org/issue46370 --- Python/pylifecycle.c | 1 + Python/pystate.c | 1 + 2 files changed, 2 insertions(+) (limited to 'Python') diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 284cfac3c40..8bcad67e80a 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -20,6 +20,7 @@ #include "pycore_pyerrors.h" // _PyErr_Occurred() #include "pycore_pylifecycle.h" // _PyErr_Print() #include "pycore_pystate.h" // _PyThreadState_GET() +#include "pycore_runtime_init.h" // _PyRuntimeState_INIT #include "pycore_sliceobject.h" // _PySlice_Fini() #include "pycore_structseq.h" // _PyStructSequence_InitState() #include "pycore_sysmodule.h" // _PySys_ClearAuditHooks() diff --git a/Python/pystate.c b/Python/pystate.c index a18a159b551..e6175852c46 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -10,6 +10,7 @@ #include "pycore_pylifecycle.h" #include "pycore_pymem.h" // _PyMem_SetDefaultAllocator() #include "pycore_pystate.h" // _PyThreadState_GET() +#include "pycore_runtime_init.h" // _PyRuntimeState_INIT #include "pycore_sysmodule.h" /* -------------------------------------------------------------------------- -- cgit v1.3.1