aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/gc_free_threading.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-02-20 17:50:43 +0100
committerGitHub <noreply@github.com>2024-02-20 16:50:43 +0000
commitd207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0 (patch)
tree3c48d470b84dce1673490fb262e4733c105cd315 /Python/gc_free_threading.c
parente976baba99a5c243ff3a3b5ef2fd14608a398338 (diff)
downloadcpython-d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0.tar.gz
cpython-d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0.zip
gh-110850: Cleanup pycore_time.h includes (#115724)
<pycore_time.h> include is no longer needed to get the PyTime_t type in internal header files. This type is now provided by <Python.h> include. Add <pycore_time.h> includes to C files instead.
Diffstat (limited to 'Python/gc_free_threading.c')
-rw-r--r--Python/gc_free_threading.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/gc_free_threading.c b/Python/gc_free_threading.c
index 0f159f4a272..88c9c4ae5d7 100644
--- a/Python/gc_free_threading.c
+++ b/Python/gc_free_threading.c
@@ -11,6 +11,7 @@
#include "pycore_object_stack.h"
#include "pycore_pyerrors.h"
#include "pycore_pystate.h" // _PyThreadState_GET()
+#include "pycore_time.h" // _PyTime_GetPerfCounter()
#include "pycore_tstate.h" // _PyThreadStateImpl
#include "pycore_weakref.h" // _PyWeakref_ClearRef()
#include "pydtrace.h"