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.
objc_retainAutoReleaseReturnValue
1 parent 24906a0 commit 85d08faCopy full SHA for 85d08fa
src/swift/DispatchStubs.cc
@@ -13,7 +13,11 @@
13
#include <dispatch/dispatch.h>
14
#include <stdio.h>
15
16
+#if defined(__ELF__) || defined(__MACH__) || defined(__WASM__)
17
#define DISPATCH_RUNTIME_STDLIB_INTERFACE __attribute__((__visibility__("default")))
18
+#else
19
+#define DISPATCH_RUNTIME_STDLIB_INTERFACE __declspec(dllexport)
20
+#endif
21
22
#if USE_OBJC
23
@protocol OS_dispatch_source;
@@ -54,6 +58,7 @@ static void _dispatch_overlay_constructor() {
54
58
#endif /* USE_OBJC */
55
59
56
60
#if !USE_OBJC
61
+DISPATCH_RUNTIME_STDLIB_INTERFACE
57
62
extern "C" void * objc_retainAutoreleasedReturnValue(void *obj);
63
#endif
64
0 commit comments