Commit 7ce5f15
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 caused some
build failures when compiling CPython with `zig cc`).
(cherry-picked from commit 214562e)
---------
Co-authored-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
1 parent 519dec9 commit 7ce5f15Copy full SHA for 7ce5f15
9 files changed
+18-13Lines changed: 18 additions & 13 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- Misc/NEWS.d/next/Build
- Objects
- Parser
- Python
- Tools/cases_generator
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Misc/NEWS.d/next/Build/2025-03-01-18-27-42.gh-issue-130740.nDFSHR.rst
Copy file name to clipboard+2Lines changed: 2 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | 1 | |
4 | 2 | |
5 | 3 | |
| ||
11 | 9 | |
12 | 10 | |
13 | 11 | |
| 12 | + |
| 13 | + |
14 | 14 | |
15 | 15 | |
16 | 16 | |
|
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | 1 | |
4 | 2 | |
5 | 3 | |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| 7 | + |
| 8 | + |
9 | 9 | |
10 | 10 | |
11 | 11 | |
|
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | 1 | |
4 | 2 | |
5 | 3 | |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| 7 | + |
9 | 8 | |
10 | 9 | |
11 | 10 | |
|
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
25 | | - |
26 | 24 | |
27 | 25 | |
28 | 26 | |
| ||
38 | 36 | |
39 | 37 | |
40 | 38 | |
| 39 | + |
| 40 | + |
41 | 41 | |
42 | 42 | |
43 | 43 | |
|
Collapse file
+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | | - |
4 | 1 | |
5 | 2 | |
6 | 3 | |
| ||
11 | 8 | |
12 | 9 | |
13 | 10 | |
| 11 | + |
| 12 | + |
14 | 13 | |
15 | 14 | |
16 | 15 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
| 7 | + |
6 | 8 | |
7 | 9 | |
8 | 10 | |
|
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
12 | | - |
13 | 11 | |
14 | 12 | |
15 | 13 | |
| ||
27 | 25 | |
28 | 26 | |
29 | 27 | |
| 28 | + |
| 29 | + |
30 | 30 | |
31 | 31 | |
32 | 32 | |
|
Collapse file
Tools/cases_generator/generate_cases.py
Copy file name to clipboardExpand all lines: Tools/cases_generator/generate_cases.py+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
986 | 986 | |
987 | 987 | |
988 | 988 | |
| 989 | + |
| 990 | + |
| 991 | + |
989 | 992 | |
990 | 993 | |
991 | 994 | |
|
0 commit comments