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.
2 parents 2b752a5 + 18d6a75 commit 40496bbCopy full SHA for 40496bb
Sources/BlocksRuntime/runtime.c
@@ -15,7 +15,7 @@
15
#if TARGET_OS_WIN32
16
#include <Windows.h>
17
#include <Psapi.h>
18
-#else
+#elif __has_include(<dlfcn.h>)
19
#include <dlfcn.h>
20
#endif
21
#if __has_include(<os/assumes.h>)
@@ -268,7 +268,11 @@ void _Block_use_RR( void (*retain)(const void *),
268
break;
269
}
270
#else
271
+# if __has_include(<dlfcn.h>)
272
_Block_destructInstance = dlsym(RTLD_DEFAULT, "objc_destructInstance");
273
+# else
274
+ _Block_destructInstance = _Block_destructInstance_default;
275
+# endif
276
277
278
0 commit comments