mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Treat Cygwin as a separate OS
Cygwin is considered a distinct target with a distinct ABI, environment conditions, and data types. Though the goal of the project is native Windows integration with UNIX-likes, that is not compatible with the idea that the platform can be ignored as Win-like enough to have the existing os(Windows) condition apply.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
#if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
|
||||
import Darwin
|
||||
#elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || CYGWIN
|
||||
#elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin)
|
||||
import Glibc
|
||||
#endif
|
||||
|
||||
@@ -59,7 +59,7 @@ internal func invokeBlockContext(
|
||||
return context.run()
|
||||
}
|
||||
|
||||
#if CYGWIN || os(FreeBSD)
|
||||
#if os(Cygwin) || os(FreeBSD)
|
||||
public typealias _stdlib_pthread_attr_t = UnsafePointer<pthread_attr_t?>
|
||||
#else
|
||||
public typealias _stdlib_pthread_attr_t = UnsafePointer<pthread_attr_t>
|
||||
|
||||
Reference in New Issue
Block a user