Skip to content

Automatically forward imports of Dispatch and only define ObjCBool in non objc contexts for compatability layers #1242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Foundation/NSSwiftRuntime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ import CoreFoundation
@_exported import Glibc
#endif

@_exported import Dispatch

#if os(Android) // shim required for bzero
@_transparent func bzero(_ ptr: UnsafeMutableRawPointer, _ size: size_t) {
memset(ptr, 0, size)
}
#endif

#if !_runtime(_ObjC)
/// The Objective-C BOOL type.
///
/// On 64-bit iOS, the Objective-C BOOL type is a typedef of C/C++
Expand Down Expand Up @@ -81,6 +84,7 @@ extension ObjCBool : CustomStringConvertible {
return self.boolValue.description
}
}
#endif

internal class __NSCFType : NSObject {
private var _cfinfo : Int32
Expand Down