mirror of https://github.com/mpv-player/mpv
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:
parent
0f9630f28d
commit
e3a290b618
|
@ -43,3 +43,11 @@ extension NSDraggingInfo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
||||||
|
|
Loading…
Reference in New Issue