Skip to content

Commit 2611686

Browse files
committed
Merge remote-tracking branch 'origin/main' into rebranch
2 parents bf45bcd + 01d48e0 commit 2611686

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/swift/Runtime/Config.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,14 @@ extern uintptr_t __COMPATIBILITY_LIBRARIES_CANNOT_CHECK_THE_IS_SWIFT_BIT_DIRECTL
168168
// Bring in visibility attribute macros
169169
#include "swift/shims/Visibility.h"
170170

171+
// Temporary definitions to allow compilation on clang-15.
172+
#if defined(__cplusplus)
173+
#define SWIFT_EXTERN_C extern "C"
174+
#else
175+
#define SWIFT_EXTERN_C
176+
#endif
177+
#define SWIFT_RUNTIME_EXPORT_ATTRIBUTE SWIFT_EXPORT_FROM_ATTRIBUTE(swiftCore)
178+
171179
// Define mappings for calling conventions.
172180

173181
// Annotation for specifying a calling convention of

0 commit comments

Comments
 (0)