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:
committed by
GitHub
parent
fecf8bc8f2
commit
830f04b505
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user