Skip to content

Commit 3643869

Browse files
authored
Fix UUID ambiguity on Windows (#399)
WinSDK has this typedef `typedef GUID UUID` in one of its included headers (rpcdce.h). This causes ambiguity as the compiler does not know which UUID to pick
1 parent 67c0c9d commit 3643869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Dependencies/DependencyValues.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public struct DependencyValues: Sendable {
124124
#if DEBUG
125125
@TaskLocal static var isSetting = false
126126
#endif
127-
@TaskLocal static var preparationID: UUID?
127+
@TaskLocal static var preparationID: Foundation.UUID?
128128
static var isPreparing: Bool {
129129
preparationID != nil
130130
}
@@ -482,7 +482,7 @@ public final class CachedValues: @unchecked Sendable {
482482

483483
public struct CachedValue {
484484
let base: any Sendable
485-
let preparationID: UUID?
485+
let preparationID: Foundation.UUID?
486486
}
487487

488488
public let lock = NSRecursiveLock()

0 commit comments

Comments
 (0)