Skip to content

Commit a2cd52c

Browse files
authored
Merge pull request #23178 from compnerd/the-mirror-is-broken
2 parents d4757d4 + fbd456b commit a2cd52c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

include/swift/SwiftRemoteMirror/SwiftRemoteMirror.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
extern "C" {
3838
#endif
3939

40+
SWIFT_REMOTE_MIRROR_LINKAGE
4041
extern unsigned long long swift_reflection_classIsSwiftMask;
4142

4243
/// Get the metadata version supported by the Remote Mirror library.

stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#include "swift/SwiftRemoteMirror/Platform.h"
14+
1315
#define SWIFT_CLASS_IS_SWIFT_MASK swift_reflection_classIsSwiftMask
14-
extern "C" unsigned long long swift_reflection_classIsSwiftMask = 2;
16+
extern "C" {
17+
SWIFT_REMOTE_MIRROR_LINKAGE
18+
unsigned long long swift_reflection_classIsSwiftMask = 2;
19+
}
1520

1621
#include "swift/Reflection/ReflectionContext.h"
1722
#include "swift/Reflection/TypeLowering.h"

0 commit comments

Comments
 (0)