redefinition of enumerator 'NSAttachmentCharacter' with Apple internal build
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Apr 2019 11:29:14 +0000 (11:29 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Apr 2019 11:29:14 +0000 (11:29 +0000)
https://bugs.webkit.org/show_bug.cgi?id=197279

Reviewed by Antoine Quint.

Try to fix the build.

* platform/mac/WebNSAttributedStringExtras.mm:

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

Source/WebCore/ChangeLog
Source/WebCore/platform/mac/WebNSAttributedStringExtras.mm

index 00ebd54..84effb1 100644 (file)
@@ -1,5 +1,16 @@
 2019-04-25  Antti Koivisto  <antti@apple.com>
 
+        redefinition of enumerator 'NSAttachmentCharacter' with Apple internal build
+        https://bugs.webkit.org/show_bug.cgi?id=197279
+
+        Reviewed by Antoine Quint.
+
+        Try to fix the build.
+
+        * platform/mac/WebNSAttributedStringExtras.mm:
+
+2019-04-25  Antti Koivisto  <antti@apple.com>
+
         Visited link hash should be computed only once
         https://bugs.webkit.org/show_bug.cgi?id=197229
         <rdar://problem/48438924>
index f25fc37..572c35f 100644 (file)
 #import "WebNSAttributedStringExtras.h"
 
 #if PLATFORM(IOS_FAMILY)
+#if USE(APPLE_INTERNAL_SDK)
+#import <UIKit/NSTextAttachment.h>
+#else
 enum {
     NSAttachmentCharacter = 0xfffc    /* To denote attachments. */
 };
 #endif
+#endif
 
 namespace WebCore {