about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cffi/darwin-use-libffi-closures.diff
blob: fdbec4f6fe4adeeb507dd61078009ad2acb304df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/c/_cffi_backend.c b/src/c/_cffi_backend.c
index 537271f..9c3bf94 100644
--- a/src/c/_cffi_backend.c
+++ b/src/c/_cffi_backend.c
@@ -103,7 +103,7 @@
 # define CFFI_CHECK_FFI_PREP_CIF_VAR 0
 # define CFFI_CHECK_FFI_PREP_CIF_VAR_MAYBE 0
 
-#elif defined(__APPLE__) && defined(FFI_AVAILABLE_APPLE)
+#elif defined(__APPLE__)
 
 # define CFFI_CHECK_FFI_CLOSURE_ALLOC __builtin_available(macos 10.15, ios 13, watchos 6, tvos 13, *)
 # define CFFI_CHECK_FFI_CLOSURE_ALLOC_MAYBE 1
@@ -6422,7 +6422,7 @@ static PyObject *b_callback(PyObject *self, PyObject *args)
     else
 #endif
     {
-#if defined(__APPLE__) && defined(FFI_AVAILABLE_APPLE) && !FFI_LEGACY_CLOSURE_API
+#if defined(__APPLE__) && !FFI_LEGACY_CLOSURE_API
         PyErr_Format(PyExc_SystemError, "ffi_prep_closure_loc() is missing");
         goto error;
 #else