Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-108765: Move standard includes to Python.h #108769

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 1, 2023

  • 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.

* 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.
@vstinner vstinner merged commit 45b9e6a into python:main Sep 1, 2023
16 checks passed
@vstinner vstinner deleted the std_includes branch September 1, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants