gh-129141: Fix build on gcc-9.4.0 (GH-129142)

This commit is contained in:
Michael Droettboom 2025-01-21 13:13:33 -05:00 committed by GitHub
parent 05d12eecbd
commit 3d7c0e5366
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -9,8 +9,12 @@
// For Apple's libffi, this must be determined at runtime (see gh-128156).
#if defined(Py_HAVE_C_COMPLEX) && defined(Py_FFI_SUPPORT_C_COMPLEX)
# include "../_complex.h" // complex
# if USING_APPLE_OS_LIBFFI && defined(__has_builtin) && __has_builtin(__builtin_available)
# define Py_FFI_COMPLEX_AVAILABLE __builtin_available(macOS 10.15, *)
# if USING_APPLE_OS_LIBFFI && defined(__has_builtin)
# if __has_builtin(__builtin_available)
# define Py_FFI_COMPLEX_AVAILABLE __builtin_available(macOS 10.15, *)
# else
# define Py_FFI_COMPLEX_AVAILABLE 1
# endif
# else
# define Py_FFI_COMPLEX_AVAILABLE 1
# endif