summaryrefslogtreecommitdiffstats
path: root/Python/instruction_sequence.c
diff options
context:
space:
mode:
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>2025-03-02 09:56:49 (GMT)
committerGitHub <noreply@github.com>2025-03-02 09:56:49 (GMT)
commit214562ed4ddc248b007f718ed92ebcc0c3669611 (patch)
tree23abec36fbc197868e07cb1173ff6d69969a4e37 /Python/instruction_sequence.c
parent051f0e5683fec3840fa7fc99723741dd2d701eae (diff)
downloadcpython-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/instruction_sequence.c')
-rw-r--r--Python/instruction_sequence.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/instruction_sequence.c b/Python/instruction_sequence.c
index e2607e9..ed40c06 100644
--- a/Python/instruction_sequence.c
+++ b/Python/instruction_sequence.c
@@ -5,8 +5,6 @@
*/
-#include <stdbool.h>
-
#include "Python.h"
#include "pycore_compile.h" // _PyCompile_EnsureArrayLargeEnough
@@ -22,6 +20,8 @@ typedef _Py_SourceLocation location;
#include "clinic/instruction_sequence.c.h"
+#include <stdbool.h>
+
#undef SUCCESS
#undef ERROR
#define SUCCESS 0