linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / qt-5 / 5.12 / qtbase.patch.d / 0013-define-kiosurfacesuccess.patch
bloba43a46d8a69b019c7e19e436375845e0eea40bda
1 diff --git a/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm b/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
2 index a367487e..c3aeca1d 100644
3 --- a/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
4 +++ b/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
5 @@ -49,6 +49,11 @@
6 // but was only added in the 10.14 SDK, so declare it just in case.
7 extern "C" CFPropertyListRef CGColorSpaceCopyPropertyList(CGColorSpaceRef space);
9 +// Introduced in 10.13: http://codeworkshop.net/objc-diff/sdkdiffs/macos/10.13/IOSurface.html
10 +#if !defined(kIOSurfaceSuccess)
11 +#define kIOSurfaceSuccess KERN_SUCCESS
12 +#endif
14 QT_BEGIN_NAMESPACE
16 Q_LOGGING_CATEGORY(lcQpaIOSurface, "qt.qpa.backingstore.iosurface");