]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46748: Don't import <stdbool.h> in public headers (GH-31553)
authorPetr Viktorin <encukou@gmail.com>
Fri, 25 Feb 2022 08:25:54 +0000 (09:25 +0100)
committerGitHub <noreply@github.com>
Fri, 25 Feb 2022 08:25:54 +0000 (09:25 +0100)
commit2c228a7b8f89e9ed8d390370abd771d4993b79d8
tree6c3316eb466ed4feb1221d4ece109695f01e77aa
parent98c3bea4d1c7335135e60946d0ec8cd5031fb6c0
bpo-46748: Don't import <stdbool.h> in public headers (GH-31553)

<stdbool.h> is the standard/modern way to define embedd/extends Python free to define bool, true and false, but there are existing applications that use slightly different redefinitions, which fail if the header is included.

It's OK to use stdbool outside the public headers, though.

https://bugs.python.org/issue46748
Include/cpython/import.h
Include/cpython/pystate.h
Misc/NEWS.d/next/C API/2022-02-24-13-13-16.bpo-46748.aG1zb3.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Python/frozen.c
Tools/freeze/makefreeze.py