mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
17 lines
726 B
Diff
17 lines
726 B
Diff
diff --git a/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm b/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
|
|
index a367487e..c3aeca1d 100644
|
|
--- a/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
|
|
+++ b/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
|
|
@@ -49,6 +49,11 @@
|
|
// but was only added in the 10.14 SDK, so declare it just in case.
|
|
extern "C" CFPropertyListRef CGColorSpaceCopyPropertyList(CGColorSpaceRef space);
|
|
|
|
+// Introduced in 10.13: http://codeworkshop.net/objc-diff/sdkdiffs/macos/10.13/IOSurface.html
|
|
+#if !defined(kIOSurfaceSuccess)
|
|
+#define kIOSurfaceSuccess KERN_SUCCESS
|
|
+#endif
|
|
+
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
Q_LOGGING_CATEGORY(lcQpaIOSurface, "qt.qpa.backingstore.iosurface");
|