Skip to content

Commit 560579a

Browse files
committed
TSCBasic: repair the build on Windows after swiftlang#139
Import WinSDK to get access to `SwitchToThread`.
1 parent a77e5a0 commit 560579a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/TSCBasic/Thread.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
*/
1010

1111
import Foundation
12+
#if os(Windows)
13+
import WinSDK
14+
#endif
1215

1316
/// This class bridges the gap between Darwin and Linux Foundation Threading API.
1417
/// It provides closure based execution and a join method to block the calling thread

0 commit comments

Comments
 (0)