File tree Expand file tree Collapse file tree 4 files changed +20
-20
lines changed
CoreFoundation/Base.subproj Expand file tree Collapse file tree 4 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -1048,6 +1048,16 @@ void __CFInitialize(void) {
1048
1048
1049
1049
1050
1050
#if DEPLOYMENT_RUNTIME_SWIFT
1051
+
1052
+ #ifndef __CFSwiftGetBaseClass
1053
+ #if TARGET_OS_LINUX
1054
+ #define __CFSwiftGetBaseClass _TF10Foundation21__CFSwiftGetBaseClassFT_PMPs9AnyObject_
1055
+ #elif TARGET_OS_MAC
1056
+ #define __CFSwiftGetBaseClass _TF15SwiftFoundation21__CFSwiftGetBaseClassFT_PMPs9AnyObject_
1057
+ #endif
1058
+ #endif
1059
+ extern uintptr_t __CFSwiftGetBaseClass ();
1060
+
1051
1061
uintptr_t NSCFType = __CFSwiftGetBaseClass ();
1052
1062
for (CFIndex idx = 1 ; idx < __CFRuntimeClassTableSize ; idx ++ ) {
1053
1063
__CFRuntimeObjCClassTable [idx ] = NSCFType ;
@@ -1151,6 +1161,14 @@ void __CFInitialize(void) {
1151
1161
#endif
1152
1162
#endif
1153
1163
#if DEPLOYMENT_RUNTIME_SWIFT
1164
+ #ifndef __CFInitializeSwift
1165
+ #if TARGET_OS_LINUX
1166
+ #define __CFInitializeSwift _TF10Foundation19__CFInitializeSwiftFT_T_
1167
+ #elif TARGET_OS_MAC
1168
+ #define __CFInitializeSwift _TF15SwiftFoundation19__CFInitializeSwiftFT_T_
1169
+ #endif
1170
+ #endif
1171
+ extern void __CFInitializeSwift ();
1154
1172
__CFInitializeSwift ();
1155
1173
#endif
1156
1174
{
Original file line number Diff line number Diff line change 1
1
2
2
3
3
# This is specific to Swift open source; Foundation's NSCFConstantString is used as our constant string class reference
4
- __TMdC15SwiftFoundation19_NSCFConstantString ___CFConstantStringClassReference
4
+ __TMC15SwiftFoundation19_NSCFConstantString ___CFConstantStringClassReference
5
5
6
6
_kCFCalendarIdentifierBuddhist _kCFBuddhistCalendar
7
7
_kCFCalendarIdentifierChinese _kCFChineseCalendar
Original file line number Diff line number Diff line change @@ -37,24 +37,6 @@ typedef struct __CFSwiftObject *CFSwiftRef;
37
37
} \
38
38
} while (0 )
39
39
40
- #ifndef __CFSwiftGetBaseClass
41
- #if TARGET_OS_LINUX
42
- #define __CFSwiftGetBaseClass _TF10Foundation21__CFSwiftGetBaseClassFT_PMPs9AnyObject_
43
- #elif TARGET_OS_MAC
44
- #define __CFSwiftGetBaseClass _TF15SwiftFoundation21__CFSwiftGetBaseClassFT_PMPSs9AnyObject_
45
- #endif
46
- #endif
47
- extern uintptr_t __CFSwiftGetBaseClass ();
48
-
49
- #ifndef __CFInitializeSwift
50
- #if TARGET_OS_LINUX
51
- #define __CFInitializeSwift _TF10Foundation19__CFInitializeSwiftFT_T_
52
- #elif TARGET_OS_MAC
53
- #define __CFInitializeSwift _TF15SwiftFoundation19__CFInitializeSwiftFT_T_
54
- #endif
55
- #endif
56
- extern void __CFInitializeSwift ();
57
-
58
40
extern bool _CFIsSwift (CFTypeID type, CFSwiftRef obj);
59
41
extern void _CFDeinit (CFTypeRef cf);
60
42
Original file line number Diff line number Diff line change 1
1
2
2
3
3
# This is specific to Swift open source; Foundation's NSCFConstantString is used as our constant string class reference
4
- __TMdC15SwiftFoundation19_NSCFConstantString ___CFConstantStringClassReference
4
+ __TMC15SwiftFoundation19_NSCFConstantString ___CFConstantStringClassReference
5
5
6
6
_kCFCalendarIdentifierBuddhist _kCFBuddhistCalendar
7
7
_kCFCalendarIdentifierChinese _kCFChineseCalendar
You can’t perform that action at this time.
0 commit comments