Title: [264278] trunk/Source/WebCore/PAL
Revision
264278
Author
ysuz...@apple.com
Date
2020-07-12 04:13:16 -0700 (Sun, 12 Jul 2020)

Log Message

Unreviewed, speculative build fix for internal build

Followed the style of WebKit/Platform/spi/ios/UIKitSPI.h. Using `__has_include` to
conditionally define LSDatabaseContext (WebKitChangeTracking) category.

* pal/spi/cocoa/LaunchServicesSPI.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/PAL/ChangeLog (264277 => 264278)


--- trunk/Source/WebCore/PAL/ChangeLog	2020-07-12 09:47:05 UTC (rev 264277)
+++ trunk/Source/WebCore/PAL/ChangeLog	2020-07-12 11:13:16 UTC (rev 264278)
@@ -1,3 +1,12 @@
+2020-07-12  Yusuke Suzuki  <ysuz...@apple.com>
+
+        Unreviewed, speculative build fix for internal build
+
+        Followed the style of WebKit/Platform/spi/ios/UIKitSPI.h. Using `__has_include` to
+        conditionally define LSDatabaseContext (WebKitChangeTracking) category.
+
+        * pal/spi/cocoa/LaunchServicesSPI.h:
+
 2020-07-09  Brady Eidson  <beid...@apple.com>
 
         Multiplex the HID and GameController gamepad providers on Mac.

Modified: trunk/Source/WebCore/PAL/pal/spi/cocoa/LaunchServicesSPI.h (264277 => 264278)


--- trunk/Source/WebCore/PAL/pal/spi/cocoa/LaunchServicesSPI.h	2020-07-12 09:47:05 UTC (rev 264277)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/LaunchServicesSPI.h	2020-07-12 11:13:16 UTC (rev 264278)
@@ -86,6 +86,9 @@
 #endif // !USE(APPLE_INTERNAL_SDK)
 
 #if HAVE(LSDATABASECONTEXT)
+#if __has_include(<CoreServices/LSDatabaseContext+WebKit.h>)
+#import <CoreServices/LSDatabaseContext+WebKit.h>
+#else
 @interface LSDatabaseContext (WebKitChangeTracking)
 - (id <NSObject>)addDatabaseChangeObserver4WebKit:(void (^)(xpc_object_t change))observer;
 - (void)removeDatabaseChangeObserver4WebKit:(id <NSObject>)token;
@@ -92,6 +95,7 @@
 - (void)observeDatabaseChange4WebKit:(xpc_object_t)change;
 @end
 #endif
+#endif
 
 #if PLATFORM(MAC)
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to