diff options
| author | Victor Stinner <vstinner@python.org> | 2025-02-28 09:40:06 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-28 09:40:06 (GMT) |
| commit | 9184b1b0319311cdd07110e2e389c0b1b7f17ad8 (patch) | |
| tree | f8b20150a17ea4157182fd5cacf1383f1187dae8 /Python/pythonrun.c | |
| parent | b223dc70cdddc6d3f21840b629e99c98b16433eb (diff) | |
| download | cpython-9184b1b0319311cdd07110e2e389c0b1b7f17ad8.zip cpython-9184b1b0319311cdd07110e2e389c0b1b7f17ad8.tar.gz cpython-9184b1b0319311cdd07110e2e389c0b1b7f17ad8.tar.bz2 | |
[3.13] Postpone <stdbool.h> inclusion after Python.h (#130641) (#130675)
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.
(cherry picked from commit 830f04b5056db92ba96387db0a778dcd19a39522)
Co-authored-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Diffstat (limited to 'Python/pythonrun.c')
| -rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 2092f3a..eea6383 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() @@ -28,6 +26,8 @@ #include "errcode.h" // E_EOF #include "marshal.h" // PyMarshal_ReadLongFromFile() +#include <stdbool.h> + #ifdef MS_WINDOWS # include "malloc.h" // alloca() #endif |
