mirror of
https://github.com/apple/swift-system
synced 2026-11-24 04:38:14 +00:00
MachPort: fix build issues with Swift 5.7
It seems that `#if $MoveOnly` check has no effect on Swift 5.7, so we should check whether Swift 5.8 or later are available first. Resolves #117.
This commit is contained in:
1 parent
ccea4eed1a
commit
3f66dfbaf8
1 file changed
+1
-1
@@ -7,7 +7,7 @@
|
||||
See https://swift.org/LICENSE.txt for license information
|
||||
*/
|
||||
|
||||
#if $MoveOnly && (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
|
||||
#if swift(>=5.8) && $MoveOnly && (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
|
||||
|
||||
import Darwin.Mach
|
||||
|
||||
|
||||
Reference in new issue
Block a user