Guarding code in PlatformPasteboardIOS.mm TARGET_OS_IPHONE did not have the intended effect.
* platform/ios/PlatformPasteboardIOS.mm:
(WebCore::PlatformPasteboard::typesSafeForDOMToReadAndWrite const):
(WebCore::PlatformPasteboard::write):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@222597
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2017-09-27 Wenson Hsieh <wenson_hsieh@apple.com>
+ Unreviewed, fix the internal build after r222596 and r222595.
+
+ Guarding code in PlatformPasteboardIOS.mm TARGET_OS_IPHONE did not have the intended effect.
+
+ * platform/ios/PlatformPasteboardIOS.mm:
+ (WebCore::PlatformPasteboard::typesSafeForDOMToReadAndWrite const):
+ (WebCore::PlatformPasteboard::write):
+
+2017-09-27 Wenson Hsieh <wenson_hsieh@apple.com>
+
Unreviewed, fix the internal build after r222595.
Add missing iOS compiler guards.
Vector<String> PlatformPasteboard::typesSafeForDOMToReadAndWrite() const
{
-#if TARGET_OS_IPHONE
+#if TARGET_OS_IOS
ListHashSet<String> domPasteboardTypes;
for (NSItemProvider *provider in [m_pasteboard itemProviders]) {
if (!provider.teamData.length)
long PlatformPasteboard::write(const PasteboardCustomData& data)
{
-#if TARGET_OS_IPHONE
+#if TARGET_OS_IOS
auto representationsToRegister = adoptNS([[WebItemProviderRegistrationInfoList alloc] init]);
[representationsToRegister setPreferredPresentationStyle:WebPreferredPresentationStyleInline];