Skip to content

Commit 12cf1ec

Browse files
committed
Spell the workaround a different way
1 parent cf69092 commit 12cf1ec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Sources/Overlays/_Testing_WinSDK/Attachments/AttachableImageFormat+CLSID.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ extension AttachableImageFormat {
229229
return preferredName
230230
}
231231

232+
#if compiler(>=6.3)
233+
// Workaround for https://github.com/swiftlang/swift/pull/84466
234+
public typealias CLSID = WinSDK.GUID
235+
#endif
236+
232237
/// The `CLSID` value of the Windows Imaging Component (WIC) encoder class
233238
/// that corresponds to this image format.
234239
///
@@ -238,7 +243,7 @@ extension AttachableImageFormat {
238243
/// @Metadata {
239244
/// @Available(Swift, introduced: 6.3)
240245
/// }
241-
public var encoderCLSID: WinSDK.CLSID {
246+
public var encoderCLSID: CLSID {
242247
switch kind {
243248
case .png:
244249
CLSID_WICPngEncoder
@@ -270,7 +275,7 @@ extension AttachableImageFormat {
270275
/// @Metadata {
271276
/// @Available(Swift, introduced: 6.3)
272277
/// }
273-
public init(encoderCLSID: WinSDK.CLSID, encodingQuality: Float = 1.0) {
278+
public init(encoderCLSID: CLSID, encodingQuality: Float = 1.0) {
274279
if encoderCLSID == CLSID_WICPngEncoder {
275280
self = .png
276281
} else if encoderCLSID == CLSID_WICJpegEncoder {

0 commit comments

Comments
 (0)