@@ -34,19 +34,20 @@ struct HeapObject;
34
34
#if SWIFT_OBJC_INTEROP
35
35
#include < objc/objc.h>
36
36
#include < objc/runtime.h>
37
+ #include < objc/objc-api.h>
37
38
38
39
// Redeclare APIs from the Objective-C runtime.
39
40
// These functions are not available through public headers, but are guaranteed
40
41
// to exist on OS X >= 10.9 and iOS >= 7.0.
41
42
42
- extern " C " id objc_retain (id);
43
- extern " C " void objc_release (id);
44
- extern " C " id _objc_rootAutorelease (id);
45
- extern " C " void objc_moveWeak (id*, id*);
46
- extern " C " void objc_copyWeak (id*, id*);
47
- extern " C " id objc_initWeak (id*, id);
48
- extern " C " void objc_destroyWeak (id*);
49
- extern " C " id objc_loadWeakRetained (id*);
43
+ OBJC_EXPORT id objc_retain (id);
44
+ OBJC_EXPORT void objc_release (id);
45
+ OBJC_EXPORT id _objc_rootAutorelease (id);
46
+ OBJC_EXPORT void objc_moveWeak (id*, id*);
47
+ OBJC_EXPORT void objc_copyWeak (id*, id*);
48
+ OBJC_EXPORT id objc_initWeak (id*, id);
49
+ OBJC_EXPORT void objc_destroyWeak (id*);
50
+ OBJC_EXPORT id objc_loadWeakRetained (id*);
50
51
51
52
// Description of an Objective-C image.
52
53
// __DATA,__objc_imageinfo stores one of these.
0 commit comments