]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108765: Move standard includes to Python.h (#108769)
authorVictor Stinner <vstinner@python.org>
Fri, 1 Sep 2023 19:03:20 +0000 (21:03 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2023 19:03:20 +0000 (21:03 +0200)
commit45b9e6a61f4cd61c08b2b02d257b52635ab37a25
tree17bd561901193b09c5847404d51c765b7e8b9545
parent0e01fac315dfa705ac8a6954485546f28cf4c87d
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.
Include/Python.h
Include/bytesobject.h
Include/internal/pycore_condvar.h
Include/modsupport.h
Include/object.h
Include/objimpl.h
Include/pyerrors.h
Include/pymem.h
Include/pyport.h
Include/unicodeobject.h