diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-01 19:03:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 19:03:20 (GMT) |
commit | 45b9e6a61f4cd61c08b2b02d257b52635ab37a25 (patch) | |
tree | 17bd561901193b09c5847404d51c765b7e8b9545 /Include/internal | |
parent | 0e01fac315dfa705ac8a6954485546f28cf4c87d (diff) | |
download | cpython-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/internal')
-rw-r--r-- | Include/internal/pycore_condvar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_condvar.h b/Include/internal/pycore_condvar.h index db8682a..489e67d 100644 --- a/Include/internal/pycore_condvar.h +++ b/Include/internal/pycore_condvar.h @@ -5,6 +5,10 @@ # error "this header requires Py_BUILD_CORE define" #endif +#ifndef MS_WINDOWS +# include <unistd.h> // _POSIX_THREADS +#endif + #ifndef _POSIX_THREADS /* This means pthreads are not implemented in libc headers, hence the macro not present in unistd.h. But they still can be implemented as an external |