https://github.com/python/cpython/commit/d7d41e27086a34fa552e48c36c48317ed7bdb371
commit: d7d41e27086a34fa552e48c36c48317ed7bdb371
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-11-18T22:12:39+01:00
summary:

gh-162214: Use #ifdef to test USING_APPLE_OS_LIBFFI macro in ctypes.h (#162221)

The macro is already tested by "#if defined(USING_APPLE_OS_LIBFFI)"
in other ctypes C files.

files:
M Modules/_ctypes/ctypes.h

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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to