mac/compat: fix broken CGColorSpace declaration on SDK 11 only

seems like apple missed those two colour spaces and didn't add a obj-c
to swift redeclaration of the CFStringRef kCGColorSpace* global
variables.
This commit is contained in:
der richter 2024-06-15 15:06:04 +02:00
parent 0f9630f28d
commit e3a290b618
1 changed files with 8 additions and 0 deletions

View File

@ -43,3 +43,11 @@ extension NSDraggingInfo {
}
}
#endif
#if !HAVE_MACOS_12_FEATURES && HAVE_MACOS_11_FEATURES
@available(macOS 11.0, *)
extension CGColorSpace {
static let itur_2100_HLG: CFString = kCGColorSpaceITUR_2100_HLG
static let itur_2100_PQ: CFString = kCGColorSpaceITUR_2100_PQ
}
#endif