Try to fix iOS build.
* platform/Pasteboard.h: Fix #if so that we don't try to compile pasteboard name code
on iOS.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150141 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index c6c98b9..c9ee6de 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,10 @@
+2013-05-15 Darin Adler <darin@apple.com>
+
+ Try to fix iOS build.
+
+ * platform/Pasteboard.h: Fix #if so that we don't try to compile pasteboard name code
+ on iOS.
+
2013-05-13 Anders Carlsson <andersca@apple.com>
Frame::editor() should return a reference
diff --git a/Source/WebCore/platform/Pasteboard.h b/Source/WebCore/platform/Pasteboard.h
index 49016e4..7de4694 100644
--- a/Source/WebCore/platform/Pasteboard.h
+++ b/Source/WebCore/platform/Pasteboard.h
@@ -80,17 +80,20 @@
CannotSmartReplace
};
-#if PLATFORM(MAC)
+#if PLATFORM(MAC) && !PLATFORM(IOS)
static PassOwnPtr<Pasteboard> create(const String& pasteboardName);
String name() const { return m_pasteboardName; }
// This is required to support OS X services.
void writeSelectionForTypes(const Vector<String>& pasteboardTypes, bool canSmartCopyOrDelete, Frame*, ShouldSerializeSelectedTextForClipboard);
explicit Pasteboard(const String& pasteboardName);
- static String getStringSelection(Frame*, ShouldSerializeSelectedTextForClipboard);
static PassRefPtr<SharedBuffer> getDataSelection(Frame*, const String& pasteboardType);
#endif
-
+
+#if PLATFORM(MAC)
+ static String getStringSelection(Frame*, ShouldSerializeSelectedTextForClipboard);
+#endif
+
static Pasteboard* generalPasteboard();
bool hasData();