mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
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.
This commit is contained in:
parent
fecf8bc8f2
commit
830f04b505
4 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue