Title: [210889] trunk/Source/WebCore/platform/spi/ios/QuickLookSPI.h
Revision
210889
Author
[email protected]
Date
2017-01-18 14:48:07 -0800 (Wed, 18 Jan 2017)

Log Message

Fix the iOS 10 Internal SDK build after r210864.

Modified Paths

Diff

Modified: trunk/Source/WebCore/platform/spi/ios/QuickLookSPI.h (210888 => 210889)


--- trunk/Source/WebCore/platform/spi/ios/QuickLookSPI.h	2017-01-18 22:44:00 UTC (rev 210888)
+++ trunk/Source/WebCore/platform/spi/ios/QuickLookSPI.h	2017-01-18 22:48:07 UTC (rev 210889)
@@ -47,11 +47,20 @@
 @property (readonly, nonatomic) NSURLResponse *previewResponse;
 @end
 
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
 #define kQLReturnPasswordProtected 1 << 2
+#else
+#define kQLReturnMask 0xaf00
+#define kQLReturnPasswordProtected (kQLReturnMask | 20)
+#endif
 
 #endif
 
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
 static_assert(kQLReturnPasswordProtected == 4, "kQLReturnPasswordProtected should equal 4.");
+#else
+static_assert(kQLReturnPasswordProtected == 44832, "kQLReturnPasswordProtected should equal 44832.");
+#endif
 
 WTF_EXTERN_C_BEGIN
 
@@ -61,4 +70,3 @@
 NSString *QLTypeCopyUTIForURLAndMimeType(NSURL *, NSString *mimeType);
 
 WTF_EXTERN_C_END
-
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to