Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoreFoundation: adjust declaration of private SPI #5181

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Sources/CoreFoundation/CFRuntime.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ OBJC_EXPORT void *objc_destructInstance(id obj);
#include <pathcch.h>
#endif

#if __HAS_DISPATCH__ && !TARGET_OS_MAC
#include <dispatch/dispatch.h>
#endif

enum {
// retain/release recording constants -- must match values
// used by OA for now; probably will change in the future
Expand Down Expand Up @@ -1165,8 +1169,8 @@ CF_EXPORT

CF_PRIVATE os_unfair_recursive_lock CFPlugInGlobalDataLock;

#if __HAS_DISPATCH__
extern void libdispatch_init();
#if __HAS_DISPATCH__ && !TARGET_OS_MAC
DISPATCH_EXPORT void libdispatch_init();
#endif

void __CFInitialize(void) {
Expand Down