Skip to content

Commit fe2f410

Browse files
committed
Windows: excise bits of WinSDK overlay
Conditionalise some of the conformances of `WindowsBool` to not be available without reflection or on embedded. This matches how `DarwinBoolean` is handled.
1 parent e4388c1 commit fe2f410

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/Windows/WinSDK.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,16 @@ public struct WindowsBool: ExpressibleByBooleanLiteral {
222222
}
223223
}
224224

225+
#if SWIFT_ENABLE_REFLECTION
225226
extension WindowsBool: CustomReflectable {
226227
/// Returns a mirror that reflects `self`.
227228
public var customMirror: Mirror {
228229
return Mirror(reflecting: boolValue)
229230
}
230231
}
232+
#endif
231233

234+
@_unavailableInEmbedded
232235
extension WindowsBool: CustomStringConvertible {
233236
/// A textual representation of `self`.
234237
public var description: String {

0 commit comments

Comments
 (0)