diff options
author | Hugo Beauzée-Luyssen <hugo@beauzee.fr> | 2025-03-02 09:56:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-02 09:56:49 (GMT) |
commit | 214562ed4ddc248b007f718ed92ebcc0c3669611 (patch) | |
tree | 23abec36fbc197868e07cb1173ff6d69969a4e37 /Python/index_pool.c | |
parent | 051f0e5683fec3840fa7fc99723741dd2d701eae (diff) | |
download | cpython-214562ed4ddc248b007f718ed92ebcc0c3669611.zip cpython-214562ed4ddc248b007f718ed92ebcc0c3669611.tar.gz cpython-214562ed4ddc248b007f718ed92ebcc0c3669611.tar.bz2 |
gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738)
Move some `#include <stdbool.h>` after `#include "Python.h"` when `pyconfig.h` is not
included first and when we are in a platform-agnostic context. This is to avoid having
features defined by `stdbool.h` before those decided by `Python.h`.
Diffstat (limited to 'Python/index_pool.c')
-rw-r--r-- | Python/index_pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/index_pool.c b/Python/index_pool.c index 526eccf..007c81a 100644 --- a/Python/index_pool.c +++ b/Python/index_pool.c @@ -1,10 +1,10 @@ -#include <stdbool.h> - #include "Python.h" #include "pycore_index_pool.h" #include "pycore_lock.h" +#include <stdbool.h> + #ifdef Py_GIL_DISABLED static inline void |