diff options
author | Hugo Beauzée-Luyssen <hugo@beauzee.fr> | 2025-02-28 09:09:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-28 09:09:27 (GMT) |
commit | 830f04b5056db92ba96387db0a778dcd19a39522 (patch) | |
tree | 77dfda64670489e297dea00f51cd3537211e3675 /Python/compile.c | |
parent | fecf8bc8f2fd09a9a4c5177d32dbb42920b4e177 (diff) | |
download | cpython-830f04b5056db92ba96387db0a778dcd19a39522.zip cpython-830f04b5056db92ba96387db0a778dcd19a39522.tar.gz cpython-830f04b5056db92ba96387db0a778dcd19a39522.tar.bz2 |
Postpone <stdbool.h> inclusion after Python.h (#130641)
Remove inclusions prior to Python.h.
<stdbool.h> will cause <features.h> to be included before Python.h can
define some macros to enable some additional features, causing multiple
types not to be defined down the line.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index b58c12d..cd68b89 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -14,8 +14,6 @@ * */ -#include <stdbool.h> - #include "Python.h" #include "pycore_ast.h" // PyAST_Check, _PyAST_GetDocString() #include "pycore_compile.h" @@ -25,6 +23,8 @@ #include "cpython/code.h" +#include <stdbool.h> + #undef SUCCESS #undef ERROR #define SUCCESS 0 |