Merge pull request #118 from apple/egorzhdan/extern-c

Make AtomicsShims compatible with C++ interop
This commit is contained in:
Karoy Lorentey authored and GitHub committed 2025-06-03 18:03:09 -07:00
commit ae09acf534
1 file changed
+5 -1
@@ -34,7 +34,11 @@
# define SWIFTATOMIC_SHIMS_EXPORT
# endif
#else
# define SWIFTATOMIC_SHIMS_EXPORT extern
# ifdef __cplusplus
# define SWIFTATOMIC_SHIMS_EXPORT extern "C"
# else
# define SWIFTATOMIC_SHIMS_EXPORT extern
# endif
#endif
// Swift-importable shims for C atomics.