gh-98705: Fix AIX build by undefining __bool__ in C (#98768)

This commit is contained in:
Ayappan Perumal 2023-02-03 02:02:33 +05:30 committed by GitHub
parent ba4731d149
commit 618b7a8260
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -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 */

View file

@ -0,0 +1,2 @@
``__bool__`` is defined in AIX system header files which breaks the build in
AIX, so undefine it.