From 830f04b5056db92ba96387db0a778dcd19a39522 Mon Sep 17 00:00:00 2001 From: Hugo Beauzée-Luyssen Date: Fri, 28 Feb 2025 10:09:27 +0100 Subject: Postpone inclusion after Python.h (#130641) Remove inclusions prior to Python.h. will cause 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. --- Python/pythonrun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/pythonrun.c') 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 - #include "Python.h" #include "pycore_ast.h" // PyAST_mod2obj() @@ -29,6 +27,8 @@ #include "errcode.h" // E_EOF #include "marshal.h" // PyMarshal_ReadLongFromFile() +#include + #ifdef MS_WINDOWS # include "malloc.h" // alloca() #endif -- cgit v1.2.3