Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Sep 30, 2023

  • Remove unused <locale.h> include.
  • Remove <fcntl.h> include in traceback.h.
  • Remove redundant include: <assert.h> and <stddef.h> are already included by "Python.h".
  • Remove <object.h> include in faulthandler.c.
  • Add missing <stdbool.h> in pycore_pythread.h if HAVE_PTHREAD_STUBS is defined.
  • Fix also warnings in pthread_stubs.h: don't redefine macros if they are already defined, like the __NEED_pthread_t macro.

📚 Documentation preview 📚: https://cpython-previews--110155.org.readthedocs.build/

* Remove unused <locale.h> include.
* Remove <fcntl.h> include in traceback.h.
* Remove redundant include: <assert.h> and <stddef.h> are already
  included by "Python.h".
* Remove <object.h> include in faulthandler.c.
* Add missing <stdbool.h> in pycore_pythread.h if HAVE_PTHREAD_STUBS
  is defined.
* Fix also warnings in pthread_stubs.h: don't redefine macros if they
  are already defined, like the __NEED_pthread_t macro.
@vstinner
Copy link
Member Author

Oh. It seems like WASM/WASI builds are badly broken. I'm not sure if it's related to my commit 74e425e or not.

@vstinner vstinner enabled auto-merge (squash) September 30, 2023 19:57
@vstinner vstinner merged commit 7513994 into python:main Sep 30, 2023
@vstinner vstinner deleted the unistd3 branch September 30, 2023 20:06
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
* Remove unused <locale.h> includes.
* Remove unused <fcntl.h> include in traceback.h.
* Remove redundant <assert.h> and <stddef.h> includes. They  are already
  included by "Python.h".
* Remove <object.h> include in faulthandler.c. Python.h already includes it.
* Add missing <stdbool.h> in pycore_pythread.h if HAVE_PTHREAD_STUBS
  is defined.
* Fix also warnings in pthread_stubs.h: don't redefine macros if they
  are already defined, like the __NEED_pthread_t macro.
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.

1 participant