Unreviewed, speculative iOS build fix after r182516.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2015 05:44:28 +0000 (05:44 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2015 05:44:28 +0000 (05:44 +0000)
Add #if PLATFORM(MAC) checks.

* platform/spi/cg/CoreGraphicsSPI.h:

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

Source/WebCore/ChangeLog
Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h

index 5f7173f..eeee1dc 100644 (file)
@@ -1,3 +1,11 @@
+2015-04-07  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, speculative iOS build fix after r182516.
+
+        Add #if PLATFORM(MAC) checks.
+
+        * platform/spi/cg/CoreGraphicsSPI.h:
+
 2015-04-07  Simon Fraser  <simon.fraser@apple.com>
 
         Try to fix incremental builds by forcing *InternalSettings* to get
index a705e55..bce8a8d 100644 (file)
@@ -79,7 +79,7 @@ typedef uint32_t CGFontRenderingStyle;
 enum {
     kCGFontAntialiasingStyleUnfiltered = 0 << 7,
     kCGFontAntialiasingStyleFilterLight = 1 << 7,
-#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
     kCGFontAntialiasingStyleUnfilteredCustomDilation = (8 << 7),
 #endif
 };
@@ -129,7 +129,7 @@ void CGContextSetBaseCTM(CGContextRef, CGAffineTransform);
 void CGContextSetCTM(CGContextRef, CGAffineTransform);
 void CGContextSetCompositeOperation(CGContextRef, CGCompositeOperation);
 void CGContextSetShouldAntialiasFonts(CGContextRef, bool shouldAntialiasFonts);
-#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
 void CGContextSetFontDilation(CGContextRef, CGSize);
 #endif