File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,11 @@ extern "C" void * objc_retainAutoreleasedReturnValue(void *obj);
67
67
// eventually call swift_release to balance the retain below. This is a
68
68
// workaround until the compiler no longer emits this callout on non-ObjC
69
69
// platforms.
70
- extern " C" void swift_retain (void *);
70
+ extern " C"
71
+ #if defined(_WIN32)
72
+ __declspec (dllimport)
73
+ #endif
74
+ void swift_retain (void *);
71
75
72
76
DISPATCH_RUNTIME_STDLIB_INTERFACE
73
77
extern " C" void * objc_retainAutoreleasedReturnValue (void *obj) {
@@ -78,4 +82,9 @@ extern "C" void * objc_retainAutoreleasedReturnValue(void *obj) {
78
82
else return NULL ;
79
83
}
80
84
85
+ #if defined(_WIN32)
86
+ extern " C" void *(*__imp_objc_retainAutoreleasedReturnValue)(void *) =
87
+ &objc_retainAutoreleasedReturnValue;
88
+ #endif
89
+
81
90
#endif // !USE_OBJC
You can’t perform that action at this time.
0 commit comments