From f7a26fbe501c9ee36914e63388c4771120fb6724 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 11 May 2025 16:54:17 +0800 Subject: [PATCH] Fix ptrauth C++ module include issue between extern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix “error: import of C++ module 'ptrauth' appears within extern "C" language linkage specification” LLVM upstream makes ptrauth a module on this commit https://github.com/swiftlang/llvm-project/commit/0481f049c37029d829dbc0c0cc5d1ee71c6d1c9a. Swift 6.1 release introduced such change into the toolchain. --- Sources/CoreFoundation/include/CFBase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CoreFoundation/include/CFBase.h b/Sources/CoreFoundation/include/CFBase.h index e73dd5a3a7..bc072ace70 100644 --- a/Sources/CoreFoundation/include/CFBase.h +++ b/Sources/CoreFoundation/include/CFBase.h @@ -669,6 +669,8 @@ CF_IMPLICIT_BRIDGING_DISABLED CF_EXPORT CFTypeRef CFMakeCollectable(CFTypeRef cf) CF_AUTOMATED_REFCOUNT_UNAVAILABLE; +CF_EXTERN_C_END + #if DEPLOYMENT_RUNTIME_SWIFT #if TARGET_RT_64_BIT @@ -696,7 +698,5 @@ CFTypeRef CFMakeCollectable(CFTypeRef cf) CF_AUTOMATED_REFCOUNT_UNAVAILABLE; #define __ptrauth_cf_objc_isa_pointer #endif -CF_EXTERN_C_END - #endif /* ! __COREFOUNDATION_CFBASE__ */