summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorAyappan Perumal <ayappap2@in.ibm.com>2023-02-02 20:32:33 (GMT)
committerGitHub <noreply@github.com>2023-02-02 20:32:33 (GMT)
commit618b7a8260bb40290d6551f24885931077309590 (patch)
treec81e5cc62a1509f715712abae6e525221a552994 /Include/pyport.h
parentba4731d149185894c77d201bc5804da90ff45eee (diff)
downloadcpython-618b7a8260bb40290d6551f24885931077309590.zip
cpython-618b7a8260bb40290d6551f24885931077309590.tar.gz
cpython-618b7a8260bb40290d6551f24885931077309590.tar.bz2
gh-98705: Fix AIX build by undefining `__bool__` in C (#98768)
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index b1b2a74..2208504 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -726,4 +726,10 @@ extern char * _getpty(int *, int, mode_t, int);
# endif
#endif
+
+/* AIX has __bool__ redefined in it's system header file. */
+#if defined(_AIX) && defined(__bool__)
+#undef __bool__
+#endif
+
#endif /* Py_PYPORT_H */