From c85e808ee783d637b4bccb1171c683c32b0f54c1 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 18 Nov 2026 17:15:21 +0100 Subject: [PATCH] gh-162214: Use #ifdef to test USING_APPLE_OS_LIBFFI macro in ctypes.h The macro is already tested by "#if defined(USING_APPLE_OS_LIBFFI)" in other ctypes C and header files. --- Modules/_ctypes/ctypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h index 248559aa364a198..98d8b660850b0d9 100644 --- a/Modules/_ctypes/ctypes.h +++ b/Modules/_ctypes/ctypes.h @@ -24,7 +24,7 @@ // Do we support C99 complex types in ffi? // For Apple's libffi, this must be determined at runtime (see gh-128156). #if defined(_Py_FFI_SUPPORT_C_COMPLEX) -# if USING_APPLE_OS_LIBFFI && defined(__has_builtin) +# if defined(USING_APPLE_OS_LIBFFI) && defined(__has_builtin) # if __has_builtin(__builtin_available) # define Py_FFI_COMPLEX_AVAILABLE __builtin_available(macOS 10.15, *) # else