Skip to content

Commit 873a14c

Browse files
authored
Fix ptrauth C++ module include issue between extern (#5212)
Fix “error: import of C++ module 'ptrauth' appears within extern "C" language linkage specification” LLVM upstream makes ptrauth a module on this commit swiftlang/llvm-project@0481f04. Swift 6.1 release introduced such change into the toolchain.
1 parent 59a8004 commit 873a14c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/CoreFoundation/include/CFBase.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ CF_IMPLICIT_BRIDGING_DISABLED
669669
CF_EXPORT
670670
CFTypeRef CFMakeCollectable(CFTypeRef cf) CF_AUTOMATED_REFCOUNT_UNAVAILABLE;
671671

672+
CF_EXTERN_C_END
673+
672674
#if DEPLOYMENT_RUNTIME_SWIFT
673675

674676
#if TARGET_RT_64_BIT
@@ -696,7 +698,5 @@ CFTypeRef CFMakeCollectable(CFTypeRef cf) CF_AUTOMATED_REFCOUNT_UNAVAILABLE;
696698
#define __ptrauth_cf_objc_isa_pointer
697699
#endif
698700

699-
CF_EXTERN_C_END
700-
701701
#endif /* ! __COREFOUNDATION_CFBASE__ */
702702

0 commit comments

Comments
 (0)