Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions src/swift/Source.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ extension DispatchSource {
}
#endif

#if !os(Linux) && !os(Android)
#if !os(Linux) && !os(Android) && !os(Windows)
public struct ProcessEvent : OptionSet, RawRepresentable {
public let rawValue: UInt
public init(rawValue: UInt) { self.rawValue = rawValue }
Expand Down Expand Up @@ -171,7 +171,7 @@ extension DispatchSource {
}
#endif

#if !os(Linux) && !os(Android)
#if !os(Linux) && !os(Android) && !os(Windows)
public class func makeProcessSource(identifier: pid_t, eventMask: ProcessEvent, queue: DispatchQueue? = nil) -> DispatchSourceProcess {
let source = dispatch_source_create(_swift_dispatch_source_type_PROC(), UInt(identifier), eventMask.rawValue, queue?.__wrapped)
return DispatchSource(source: source) as DispatchSourceProcess
Expand Down Expand Up @@ -208,7 +208,7 @@ extension DispatchSource {
return DispatchSource(source: source) as DispatchSourceUserDataReplace
}

#if !os(Linux) && !os(Android)
#if !os(Linux) && !os(Android) && !os(Windows)
public class func makeFileSystemObjectSource(fileDescriptor: Int32, eventMask: FileSystemEvent, queue: DispatchQueue? = nil) -> DispatchSourceFileSystemObject {
let source = dispatch_source_create(_swift_dispatch_source_type_VNODE(), UInt(fileDescriptor), eventMask.rawValue, queue?.__wrapped)
return DispatchSource(source: source) as DispatchSourceFileSystemObject
Expand Down Expand Up @@ -261,7 +261,7 @@ extension DispatchSourceMemoryPressure {
}
#endif

#if !os(Linux) && !os(Android)
#if !os(Linux) && !os(Android) && !os(Windows)
extension DispatchSourceProcess {
public var handle: pid_t {
return pid_t(dispatch_source_get_handle(self as! DispatchSource))
Expand Down Expand Up @@ -617,7 +617,7 @@ extension DispatchSourceTimer {
}
}

#if !os(Linux) && !os(Android)
#if !os(Linux) && !os(Android) && !os(Windows)
extension DispatchSourceFileSystemObject {
public var handle: Int32 {
return Int32(dispatch_source_get_handle((self as! DispatchSource).__wrapped))
Expand Down
6 changes: 3 additions & 3 deletions src/swift/Wrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ extension DispatchSource : DispatchSourceMachSend,
}
#endif

#if !os(Linux) && !os(Android)
#if !os(Linux) && !os(Android) && !os(Windows)
extension DispatchSource : DispatchSourceProcess,
DispatchSourceFileSystemObject {
}
Expand Down Expand Up @@ -272,7 +272,7 @@ public protocol DispatchSourceMemoryPressure : DispatchSourceProtocol {
}
#endif

#if !os(Linux) && !os(Android)
#if !os(Linux) && !os(Android) && !os(Windows)
public protocol DispatchSourceProcess : DispatchSourceProtocol {
var handle: pid_t { get }

Expand Down Expand Up @@ -302,7 +302,7 @@ public protocol DispatchSourceTimer : DispatchSourceProtocol {
func scheduleRepeating(wallDeadline: DispatchWallTime, interval: Double, leeway: DispatchTimeInterval)
}

#if !os(Linux) && !os(Android)
#if !os(Linux) && !os(Android) && !os(Windows)
public protocol DispatchSourceFileSystemObject : DispatchSourceProtocol {
var handle: Int32 { get }

Expand Down