Repository navigation
Commit ae44ccb
gh-160719: Define _Py_STDC_VERSION in pyport.h
pyport.h uses _Py_STDC_VERSION to select _Py_thread_local, _Py_NULL and
_Py_TYPEOF, but the macro was defined in pymacro.h, which Python.h
includes after pyport.h. The C11 and C23 branches were therefore never
taken. Move the definition to pyport.h.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 3acc941 commit ae44ccb
3 files changed
Lines changed: 15 additions & 6 deletions
File tree
- Include
- Misc/NEWS.d/next/C_API
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 4 | + | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments