aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>2025-02-28 10:09:27 +0100
committerGitHub <noreply@github.com>2025-02-28 10:09:27 +0100
commit830f04b5056db92ba96387db0a778dcd19a39522 (patch)
tree77dfda64670489e297dea00f51cd3537211e3675 /Python/pythonrun.c
parentfecf8bc8f2fd09a9a4c5177d32dbb42920b4e177 (diff)
downloadcpython-830f04b5056db92ba96387db0a778dcd19a39522.tar.gz
cpython-830f04b5056db92ba96387db0a778dcd19a39522.zip
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/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 9b882d982a9..75d91b2040c 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -8,8 +8,6 @@
/* TODO: Cull includes following phase split */
-#include <stdbool.h>
-
#include "Python.h"
#include "pycore_ast.h" // PyAST_mod2obj()
@@ -29,6 +27,8 @@
#include "errcode.h" // E_EOF
#include "marshal.h" // PyMarshal_ReadLongFromFile()
+#include <stdbool.h>
+
#ifdef MS_WINDOWS
# include "malloc.h" // alloca()
#endif