Skip to content

Commit 3d7c0e5

Browse files
authored
gh-129141: Fix build on gcc-9.4.0 (GH-129142)
1 parent 05d12ee commit 3d7c0e5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Modules/_ctypes/ctypes.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
// For Apple's libffi, this must be determined at runtime (see gh-128156).
1010
#if defined(Py_HAVE_C_COMPLEX) && defined(Py_FFI_SUPPORT_C_COMPLEX)
1111
# include "../_complex.h" // complex
12-
# if USING_APPLE_OS_LIBFFI && defined(__has_builtin) && __has_builtin(__builtin_available)
13-
# define Py_FFI_COMPLEX_AVAILABLE __builtin_available(macOS 10.15, *)
12+
# if USING_APPLE_OS_LIBFFI && defined(__has_builtin)
13+
# if __has_builtin(__builtin_available)
14+
# define Py_FFI_COMPLEX_AVAILABLE __builtin_available(macOS 10.15, *)
15+
# else
16+
# define Py_FFI_COMPLEX_AVAILABLE 1
17+
# endif
1418
# else
1519
# define Py_FFI_COMPLEX_AVAILABLE 1
1620
# endif

0 commit comments

Comments
 (0)