⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264294 in webkit


Ignore:
Timestamp:
Jul 12, 2020, 11:28:24 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Rob Buis <​rbuis@igalia.com> 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:
Location:
trunk/Source/WebCore/PAL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/PAL/ChangeLog

    r264292 r264294  
     12020-07-12  Rob Buis  <rbuis@igalia.com>
     2
     3        Building CFNetworkSPI with the macOS Big Sur public SDK fails
     4        https://bugs.webkit.org/show_bug.cgi?id=214238
     5
     6        Reviewed by Darin Adler.
     7
     8        Building CFNetworkSPI with the macOS Big Sur public SDK fails bacause
     9        it has Objective-C declarations in a header that’s included by a
     10        non-Objective-C source file, to fix wrap the declarations in a
     11        defined(__OBJC__) block.
     12
     13        * pal/spi/cf/CFNetworkSPI.h:
     14
    1152020-07-12  Rob Buis  <rbuis@igalia.com>
    216
  • trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h

    r264292 r264294  
    6868#else // !PLATFORM(WIN) && !USE(APPLE_INTERNAL_SDK)
    6969
    70 #if HAVE(PRECONNECT_PING)
     70#if HAVE(PRECONNECT_PING) && defined(__OBJC__)
     71
    7172@interface _NSHTTPConnectionInfo : NSObject
    7273- (void)sendPingWithReceiveHandler:(void (^)(NSError * _Nullable error, NSTimeInterval interval))pongHandler;
    … …  
    7778- (void)getUnderlyingHTTPConnectionInfoWithCompletionHandler:(void (^)(_NSHTTPConnectionInfo *connectionInfo))completionHandler;
    7879@end
    79 #endif // HAVE(PRECONNECT_PING)
     80
     81#endif // HAVE(PRECONNECT_PING) && defined(__OBJC__)
    8082
    8183#if HAVE(LOGGING_PRIVACY_LEVEL)
Note: See TracChangeset for help on using the changeset viewer.