Skip to content

Commit b0587d2

Browse files
committed
wip
1 parent 3b7b10d commit b0587d2

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

Diff for: Package.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pkg.platforms = [
1111
]
1212
pkg.swiftLanguageVersions = [.v5]
1313

14-
#if !os(Linux)
14+
#if !os(Linux) && !os(Windows)
1515
pkg.dependencies = [
1616
.package(url: "https://github.com/AliSoftware/OHHTTPStubs", from: "9.1.0")
1717
]
@@ -30,7 +30,7 @@ func has(tests name: String) -> Target? {
3030
switch name {
3131
case "PMKFoundation":
3232
var deps = [Target.Dependency.target(name: "PMKFoundation")]
33-
#if !os(Linux)
33+
#if !os(Linux) && !os(Windows)
3434
deps.append(.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs"))
3535
#endif
3636
return .testTarget(name: "\(name)Tests", dependencies: deps, path: "Tests/\(name)")
@@ -43,7 +43,7 @@ func has(tests name: String) -> Target? {
4343

4444
for name in ["PMKCloudKit", "PMKCoreLocation", "PMKFoundation", "PMKHealthKit", "PMKHomeKit", "PMKMapKit", "PMKPhotos", "PMKStoreKit", "PromiseKit"] {
4545

46-
#if os(Linux)
46+
#if os(Linux) || os(Windows)
4747
guard name == "PromiseKit" || name == "PMKFoundation" else { continue }
4848
#endif
4949

Diff for: Sources/PromiseKit/Guarantee.swift

-11
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,3 @@ public extension Dispatcher {
380380
return rg
381381
}
382382
}
383-
384-
#if os(Linux)
385-
import func CoreFoundation._CFIsMainThread
386-
387-
extension Thread {
388-
// `isMainThread` is not implemented yet in swift-corelibs-foundation.
389-
static var isMainThread: Bool {
390-
return _CFIsMainThread()
391-
}
392-
}
393-
#endif

0 commit comments

Comments
 (0)