Title: [264294] trunk/Source/WebCore/PAL
Revision
264294
Author
[email protected]
Date
2020-07-12 23:28:24 -0700 (Sun, 12 Jul 2020)

Log Message

Building CFNetworkSPI with the macOS Big Sur public SDK fails
https://bugs.webkit.org/show_bug.cgi?id=214238

Patch by Rob Buis <[email protected]> on 2020-07-12
Reviewed by Darin Adler.

Building CFNetworkSPI with the macOS Big Sur public SDK fails bacause
it has Objective-C declarations in a header that’s included by a
non-Objective-C source file, to fix wrap the declarations in a
defined(__OBJC__) block.

* pal/spi/cf/CFNetworkSPI.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/PAL/ChangeLog (264293 => 264294)


--- trunk/Source/WebCore/PAL/ChangeLog	2020-07-13 06:27:19 UTC (rev 264293)
+++ trunk/Source/WebCore/PAL/ChangeLog	2020-07-13 06:28:24 UTC (rev 264294)
@@ -1,5 +1,19 @@
 2020-07-12  Rob Buis  <[email protected]>
 
+        Building CFNetworkSPI with the macOS Big Sur public SDK fails
+        https://bugs.webkit.org/show_bug.cgi?id=214238
+
+        Reviewed by Darin Adler.
+
+        Building CFNetworkSPI with the macOS Big Sur public SDK fails bacause
+        it has Objective-C declarations in a header that’s included by a
+        non-Objective-C source file, to fix wrap the declarations in a
+        defined(__OBJC__) block.
+
+        * pal/spi/cf/CFNetworkSPI.h:
+
+2020-07-12  Rob Buis  <[email protected]>
+
         Building NetworkSessionCocoa.mm with the macOS Big Sur public SDK fails
         https://bugs.webkit.org/show_bug.cgi?id=214242
 

Modified: trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h (264293 => 264294)


--- trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h	2020-07-13 06:27:19 UTC (rev 264293)
+++ trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h	2020-07-13 06:28:24 UTC (rev 264294)
@@ -67,7 +67,8 @@
 
 #else // !PLATFORM(WIN) && !USE(APPLE_INTERNAL_SDK)
 
-#if HAVE(PRECONNECT_PING)
+#if HAVE(PRECONNECT_PING) && defined(__OBJC__)
+
 @interface _NSHTTPConnectionInfo : NSObject
 - (void)sendPingWithReceiveHandler:(void (^)(NSError * _Nullable error, NSTimeInterval interval))pongHandler;
 @property (readonly) BOOL isValid;
@@ -76,8 +77,9 @@
 @interface NSURLSessionTask (HTTPConnectionInfo)
 - (void)getUnderlyingHTTPConnectionInfoWithCompletionHandler:(void (^)(_NSHTTPConnectionInfo *connectionInfo))completionHandler;
 @end
-#endif // HAVE(PRECONNECT_PING)
 
+#endif // HAVE(PRECONNECT_PING) && defined(__OBJC__)
+
 #if HAVE(LOGGING_PRIVACY_LEVEL)
 typedef enum {
     nw_context_privacy_level_public = 1,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to