Skip to content

Commit 9148428

Browse files
committed
[CF] Add missing DEPLOYMENT_RUNTIME_SWIFT guard.
CFArray.c references __CFSwiftBridge which is defined behind DEPLOYMENT_RUNTIME_SWIFT, so this needs to be behind that guard as well when DEPLOYMENT_RUNTIME_SWIFT is not set.
1 parent 86eec61 commit 9148428

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CoreFoundation/Collections.subproj/CFArray.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,10 @@ void CFArraySortValues(CFMutableArrayRef array, CFRange range, CFComparatorFunct
971971
result = CF_OBJC_CALLV((NSMutableArray *)array, isKindOfClass:[NSMutableArray class]);
972972
immutable = !result;
973973
} else if (CF_IS_SWIFT(CFArrayGetTypeID(), array)) {
974+
#if DEPLOYMENT_RUNTIME_SWIFT
974975
Boolean result = __CFSwiftBridge.NSArray.isSubclassOfNSMutableArray(array);
975976
immutable = !result;
977+
#endif
976978
} else if (__kCFArrayImmutable == __CFArrayGetType(array)) {
977979
immutable = true;
978980
}

0 commit comments

Comments
 (0)