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`.
This commit is contained in:
Hugo Beauzée-Luyssen 2025-03-02 10:56:49 +01:00 committed by GitHub
parent 051f0e5683
commit 214562ed4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 13 additions and 12 deletions

View file

@ -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