[iOS] Fix build for external iphoneos SDK
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Jan 2015 23:34:34 +0000 (23:34 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Jan 2015 23:34:34 +0000 (23:34 +0000)
Reviewed by Daniel Bates.

* WebKitSystemInterface.h: Remove import of the
<IOSurface/IOSurface.h> header, and add a typedef for
IOSurfaceRef in its place.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@178961 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitLibraries/ChangeLog
WebKitLibraries/WebKitSystemInterface.h

index 9907f7a..e2b4d07 100644 (file)
@@ -1,3 +1,13 @@
+2015-01-22  David Kilzer  <ddkilzer@apple.com>
+
+        [iOS] Fix build for external iphoneos SDK
+
+        Reviewed by Daniel Bates.
+
+        * WebKitSystemInterface.h: Remove import of the
+        <IOSurface/IOSurface.h> header, and add a typedef for
+        IOSurfaceRef in its place.
+
 2015-01-22  Brent Fulgham  <bfulgham@apple.com>
 
         [Win] Unreviewed gardening.
index d6e7b6d..e213742 100644 (file)
@@ -14,9 +14,6 @@
 #else
 #import <CoreImage/CoreImage.h>
 #import <CoreText/CoreText.h>
-#if !TARGET_IPHONE_SIMULATOR
-#import <IOSurface/IOSurface.h>
-#endif
 #import <WebKitSystemInterfaceIOS.h>
 #endif
 
@@ -172,6 +169,8 @@ CTTypesetterRef WKCreateCTTypesetterWithUniCharProviderAndOptions(const UniChar*
 CGSize WKCTRunGetInitialAdvance(CTRunRef);
 
 #if (TARGET_OS_IPHONE && TARGET_OS_EMBEDDED) || MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
+typedef struct __IOSurface *IOSurfaceRef;
+
 CGContextRef WKIOSurfaceContextCreate(IOSurfaceRef, unsigned width, unsigned height, CGColorSpaceRef);
 CGImageRef WKIOSurfaceContextCreateImage(CGContextRef context);
 #endif