Avoid the use of WTF_EXTERN_C_BEGIN in NSMenuSPI.h
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Apr 2019 22:16:57 +0000 (22:16 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Apr 2019 22:16:57 +0000 (22:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196566

Reviewed by Timothy Hatcher.

* pal/spi/mac/NSMenuSPI.h:

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

Source/WebCore/PAL/ChangeLog
Source/WebCore/PAL/pal/spi/mac/NSMenuSPI.h

index dc6463d..2dfff81 100644 (file)
@@ -1,3 +1,12 @@
+2019-04-03  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Avoid the use of WTF_EXTERN_C_BEGIN in NSMenuSPI.h
+        https://bugs.webkit.org/show_bug.cgi?id=196566
+
+        Reviewed by Timothy Hatcher.
+
+        * pal/spi/mac/NSMenuSPI.h:
+
 2019-04-03  Alex Christensen  <achristensen@webkit.org>
 
         Add SPI to disable legacy TLS fallback
index e217e23..299262f 100644 (file)
 
 #if PLATFORM(MAC)
 
-#if USE(APPLE_INTERNAL_SDK)
+#if USE(APPLE_INTERNAL_SDK) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500
+
+#import <AppKit/NSMenu_Private.h>
+
+#elif USE(APPLE_INTERNAL_SDK)
 
 WTF_EXTERN_C_BEGIN
 #import <AppKit/NSMenu_Private.h>