]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738) (#130757)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Tue, 4 Mar 2025 09:38:24 +0000 (10:38 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Mar 2025 09:38:24 +0000 (10:38 +0100)
commit7ce5f1598186ef652246aefbea498f2dd4f3dcfd
treed2557e106d2bcc0a992e400928ef623b06d6bb67
parent519dec97e726d190e1c5c9a5ecf12b27e3e5e1f4
[3.12] gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738) (#130757)

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 214562ed4ddc248b007f718ed92ebcc0c3669611)

---------

Co-authored-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Misc/NEWS.d/next/Build/2025-03-01-18-27-42.gh-issue-130740.nDFSHR.rst [new file with mode: 0644]
Objects/codeobject.c
Parser/string_parser.c
Python/assemble.c
Python/compile.c
Python/flowgraph.c
Python/opcode_metadata.h
Python/pythonrun.c
Tools/cases_generator/generate_cases.py