Skip to content

Commit d217afa

Browse files
authored
Merge pull request swiftlang#1242 from phausler/objc_bool_import_fixes
2 parents cc366d5 + bcffd22 commit d217afa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Foundation/NSSwiftRuntime.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ import CoreFoundation
1818
@_exported import Glibc
1919
#endif
2020

21+
@_exported import Dispatch
22+
2123
#if os(Android) // shim required for bzero
2224
@_transparent func bzero(_ ptr: UnsafeMutableRawPointer, _ size: size_t) {
2325
memset(ptr, 0, size)
2426
}
2527
#endif
2628

29+
#if !_runtime(_ObjC)
2730
/// The Objective-C BOOL type.
2831
///
2932
/// On 64-bit iOS, the Objective-C BOOL type is a typedef of C/C++
@@ -81,6 +84,7 @@ extension ObjCBool : CustomStringConvertible {
8184
return self.boolValue.description
8285
}
8386
}
87+
#endif
8488

8589
internal class __NSCFType : NSObject {
8690
private var _cfinfo : Int32

0 commit comments

Comments
 (0)