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/flowgraph.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/flowgraph.c')
-rw-r--r-- | Python/flowgraph.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/flowgraph.c b/Python/flowgraph.c index c5bdf10..fb3c73a 100644 --- a/Python/flowgraph.c +++ b/Python/flowgraph.c @@ -1,6 +1,3 @@ - -#include <stdbool.h> - #include "Python.h" #include "opcode.h" #include "pycore_flowgraph.h" @@ -12,6 +9,8 @@ #include "pycore_opcode_utils.h" #include "pycore_opcode_metadata.h" // OPCODE_HAS_ARG, etc +#include <stdbool.h> + #undef SUCCESS #undef ERROR |