summaryrefslogtreecommitdiffstats
path: root/canvas/source/cairo/cairo_quartz_cairo.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/cairo/cairo_quartz_cairo.hxx')
-rw-r--r--canvas/source/cairo/cairo_quartz_cairo.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/canvas/source/cairo/cairo_quartz_cairo.hxx b/canvas/source/cairo/cairo_quartz_cairo.hxx
index 0c6a7d56db95..5d131d735ab9 100644
--- a/canvas/source/cairo/cairo_quartz_cairo.hxx
+++ b/canvas/source/cairo/cairo_quartz_cairo.hxx
@@ -32,7 +32,13 @@
#include "cairo_cairo.hxx"
#include "premac.h"
+#include <TargetConditionals.h>
+#if !defined(TARGET_OS_IPHONE) || !TARGET_OS_IPHONE
#include <Cocoa/Cocoa.h>
+#else
+#include <UIKit/UIKit.h>
+#define NSView UIView
+#endif
#include <cairo-quartz.h>
#include "postmac.h"