at 24.11-pre 1.3 kB view raw
1diff --git a/src/c/_cffi_backend.c b/src/c/_cffi_backend.c 2index 537271f..9c3bf94 100644 3--- a/src/c/_cffi_backend.c 4+++ b/src/c/_cffi_backend.c 5@@ -103,11 +103,11 @@ 6 # define CFFI_CHECK_FFI_PREP_CIF_VAR 0 7 # define CFFI_CHECK_FFI_PREP_CIF_VAR_MAYBE 0 8 9-#elif defined(__APPLE__) && defined(FFI_AVAILABLE_APPLE) 10+#elif defined(__APPLE__) 11 12-# define CFFI_CHECK_FFI_CLOSURE_ALLOC __builtin_available(macos 10.15, ios 13, watchos 6, tvos 13, *) 13+# define CFFI_CHECK_FFI_CLOSURE_ALLOC 1 14 # define CFFI_CHECK_FFI_CLOSURE_ALLOC_MAYBE 1 15-# define CFFI_CHECK_FFI_PREP_CLOSURE_LOC __builtin_available(macos 10.15, ios 13, watchos 6, tvos 13, *) 16+# define CFFI_CHECK_FFI_PREP_CLOSURE_LOC 1 17 # define CFFI_CHECK_FFI_PREP_CLOSURE_LOC_MAYBE 1 18-# define CFFI_CHECK_FFI_PREP_CIF_VAR __builtin_available(macos 10.15, ios 13, watchos 6, tvos 13, *) 19+# define CFFI_CHECK_FFI_PREP_CIF_VAR 1 20 # define CFFI_CHECK_FFI_PREP_CIF_VAR_MAYBE 1 21@@ -6422,7 +6422,7 @@ static PyObject *b_callback(PyObject *self, PyObject *args) 22 else 23 #endif 24 { 25-#if defined(__APPLE__) && defined(FFI_AVAILABLE_APPLE) && !FFI_LEGACY_CLOSURE_API 26+#if defined(__APPLE__) && !FFI_LEGACY_CLOSURE_API 27 PyErr_Format(PyExc_SystemError, "ffi_prep_closure_loc() is missing"); 28 goto error; 29 #else