mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
gh-130740: Move some stdbool.h
includes after Python.h
(#130738)
Move some `#include <stdbool.h>` after `#include "Python.h"` when `pyconfig.h` is not included first and when we are in a platform-agnostic context. This is to avoid having features defined by `stdbool.h` before those decided by `Python.h`.
This commit is contained in:
parent
051f0e5683
commit
214562ed4d
7 changed files with 13 additions and 12 deletions
|
@ -12,8 +12,6 @@
|
|||
* objects.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "Python.h"
|
||||
#include "opcode.h"
|
||||
#include "pycore_ast.h" // _PyAST_GetDocString()
|
||||
|
@ -32,6 +30,8 @@
|
|||
#include "pycore_opcode_metadata.h" // _PyOpcode_opcode_metadata, _PyOpcode_num_popped/pushed
|
||||
#undef NEED_OPCODE_METADATA
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#define COMP_GENEXP 0
|
||||
#define COMP_LISTCOMP 1
|
||||
#define COMP_SETCOMP 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue