]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738) (#130756)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 3 Mar 2025 12:09:59 +0000 (13:09 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Mar 2025 12:09:59 +0000 (13:09 +0100)
commit00cf2a621a21357b09bc7ae6f0ce0b799b1fa17f
treea5403a4f9239c005e557c03ab49c022e415f6864
parent9643ce9019c9f01a0e5d773d3abddb79471fa19a
[3.13] gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738) (#130756)

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]
Modules/_blake2/blake2b_impl.c
Modules/_blake2/blake2s_impl.c
Modules/_hashopenssl.c
Parser/string_parser.c
Python/flowgraph.c
Python/instruction_sequence.c