Skip to content

Commit 618b7a8

Browse files
authored
gh-98705: Fix AIX build by undefining __bool__ in C (#98768)
1 parent ba4731d commit 618b7a8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Include/pyport.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,4 +726,10 @@ extern char * _getpty(int *, int, mode_t, int);
726726
# endif
727727
#endif
728728

729+
730+
/* AIX has __bool__ redefined in it's system header file. */
731+
#if defined(_AIX) && defined(__bool__)
732+
#undef __bool__
733+
#endif
734+
729735
#endif /* Py_PYPORT_H */
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
``__bool__`` is defined in AIX system header files which breaks the build in
2+
AIX, so undefine it.

0 commit comments

Comments
 (0)