mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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.
This commit is contained in:
parent
e976baba99
commit
d207c7cd5a
23 changed files with 28 additions and 17 deletions
|
|
@ -11,7 +11,6 @@ extern "C" {
|
|||
|
||||
#include "pycore_lock.h" // PyMutex
|
||||
#include "pycore_hashtable.h" // _Py_hashtable_t
|
||||
#include "pycore_time.h" // PyTime_t
|
||||
|
||||
extern int _PyImport_IsInitialized(PyInterpreterState *);
|
||||
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
#include "pycore_time.h" // PyTime_t
|
||||
|
||||
|
||||
// A mutex that occupies one byte. The lock can be zero initialized.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
#include "pycore_time.h" // PyTime_t
|
||||
|
||||
|
||||
enum {
|
||||
// The thread was unparked by another thread.
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
#endif
|
||||
|
||||
#include "pycore_pythread.h" // _POSIX_SEMAPHORES
|
||||
#include "pycore_time.h" // PyTime_t
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue