mirror of
https://github.com/apple/swift-atomics
synced 2026-11-22 04:20:39 +00:00
Merge pull request #118 from apple/egorzhdan/extern-c
Make AtomicsShims compatible with C++ interop
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user