summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-02-25 08:25:54 (GMT)
committerGitHub <noreply@github.com>2022-02-25 08:25:54 (GMT)
commit2c228a7b8f89e9ed8d390370abd771d4993b79d8 (patch)
tree6c3316eb466ed4feb1221d4ece109695f01e77aa /Python
parent98c3bea4d1c7335135e60946d0ec8cd5031fb6c0 (diff)
downloadcpython-2c228a7b8f89e9ed8d390370abd771d4993b79d8.zip
cpython-2c228a7b8f89e9ed8d390370abd771d4993b79d8.tar.gz
cpython-2c228a7b8f89e9ed8d390370abd771d4993b79d8.tar.bz2
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
Diffstat (limited to 'Python')
-rw-r--r--Python/frozen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/frozen.c b/Python/frozen.c
index c5b36f7..8a2a724 100644
--- a/Python/frozen.c
+++ b/Python/frozen.c
@@ -38,6 +38,8 @@
#include "Python.h"
#include "pycore_import.h"
+#include <stdbool.h>
+
/* Includes for frozen modules: */
/* End includes */