summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>2025-02-28 09:09:27 (GMT)
committerGitHub <noreply@github.com>2025-02-28 09:09:27 (GMT)
commit830f04b5056db92ba96387db0a778dcd19a39522 (patch)
tree77dfda64670489e297dea00f51cd3537211e3675 /Python/compile.c
parentfecf8bc8f2fd09a9a4c5177d32dbb42920b4e177 (diff)
downloadcpython-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.c4
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