summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-01 19:03:20 (GMT)
committerGitHub <noreply@github.com>2023-09-01 19:03:20 (GMT)
commit45b9e6a61f4cd61c08b2b02d257b52635ab37a25 (patch)
tree17bd561901193b09c5847404d51c765b7e8b9545 /Include/object.h
parent0e01fac315dfa705ac8a6954485546f28cf4c87d (diff)
downloadcpython-45b9e6a61f4cd61c08b2b02d257b52635ab37a25.zip
cpython-45b9e6a61f4cd61c08b2b02d257b52635ab37a25.tar.gz
cpython-45b9e6a61f4cd61c08b2b02d257b52635ab37a25.tar.bz2
gh-108765: Move standard includes to Python.h (#108769)
* Move <ctype.h>, <limits.h> and <stdarg.h> standard includes to Python.h. * Move "pystats.h" include from object.h to Python.h. * Remove redundant "pymem.h" include in objimpl.h and "pyport.h" include in pymem.h; Python.h already includes them earlier. * Remove redundant <wchar.h> include in unicodeobject.h; Python.h already includes it. * Move _SGI_MP_SOURCE define from Python.h to pyport.h. * pycore_condvar.h includes explicitly <unistd.h> for the _POSIX_THREADS macro.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/object.h b/Include/object.h
index de2a1ce..b94b290 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -51,8 +51,6 @@ A standard interface exists for objects that contain an array of items
whose size is determined when the object is allocated.
*/
-#include "pystats.h"
-
/* Py_DEBUG implies Py_REF_DEBUG. */
#if defined(Py_DEBUG) && !defined(Py_REF_DEBUG)
# define Py_REF_DEBUG