File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Sources/Overlays/_Testing_WinSDK/Attachments Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,11 @@ extension AttachableImageFormat {
229
229
return preferredName
230
230
}
231
231
232
+ #if compiler(>=6.3)
233
+ // Workaround for https://github.com/swiftlang/swift/pull/84466
234
+ public typealias CLSID = WinSDK . GUID
235
+ #endif
236
+
232
237
/// The `CLSID` value of the Windows Imaging Component (WIC) encoder class
233
238
/// that corresponds to this image format.
234
239
///
@@ -238,7 +243,7 @@ extension AttachableImageFormat {
238
243
/// @Metadata {
239
244
/// @Available(Swift, introduced: 6.3)
240
245
/// }
241
- public var encoderCLSID : WinSDK . CLSID {
246
+ public var encoderCLSID : CLSID {
242
247
switch kind {
243
248
case . png:
244
249
CLSID_WICPngEncoder
@@ -270,7 +275,7 @@ extension AttachableImageFormat {
270
275
/// @Metadata {
271
276
/// @Available(Swift, introduced: 6.3)
272
277
/// }
273
- public init ( encoderCLSID: WinSDK . CLSID , encodingQuality: Float = 1.0 ) {
278
+ public init ( encoderCLSID: CLSID , encodingQuality: Float = 1.0 ) {
274
279
if encoderCLSID == CLSID_WICPngEncoder {
275
280
self = . png
276
281
} else if encoderCLSID == CLSID_WICJpegEncoder {
You can’t perform that action at this time.
0 commit comments