Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Sources/_FoundationCShims/include/_CStdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,15 @@
#include <complex.h>
#endif

#if !defined(_WIN32)
// On windows, atomic_signal_fence from clang headers is incompatible
// with atomic_signal_fence definition from MSVC when C++ interop is enabled,
// so drop the stdatomic include.
// Works around: https://github.com/swiftlang/swift/issues/75720
#if __has_include(<stdatomic.h>)
#include <stdatomic.h>
#endif
#endif

#if __has_include(<threads.h>)
#include <threads.h>
Expand Down