We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea06b28 commit 17060f5Copy full SHA for 17060f5
ext/fiddle/closure.c
@@ -13,14 +13,11 @@ typedef struct {
13
ffi_type **argv;
14
} fiddle_closure;
15
16
-#if defined(USE_FFI_CLOSURE_ALLOC)
17
-#elif defined(__OpenBSD__) || defined(__APPLE__) || defined(__linux__)
18
-# define USE_FFI_CLOSURE_ALLOC 0
19
-#elif defined(RUBY_LIBFFI_MODVERSION) && RUBY_LIBFFI_MODVERSION < 3000005 && \
20
- (defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_AMD64))
21
22
-#else
23
-# define USE_FFI_CLOSURE_ALLOC 1
+#ifndef USE_FFI_CLOSURE_ALLOC
+# if defined(RUBY_LIBFFI_MODVERSION) && RUBY_LIBFFI_MODVERSION < 3000005
+# define USE_FFI_CLOSURE_ALLOC 0
+# else
+# define USE_FFI_CLOSURE_ALLOC 1
24
#endif
25
26
static void
0 commit comments