diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-08-19 15:13:16 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-08-19 15:13:16 +0000 |
commit | 96c60b482ef2614185e3fa0c606f87c3efcf1e85 (patch) | |
tree | 95c1cfef5446c2bf9923593f123e76bb5574044f /src/memory.cpp | |
parent | a0852ffbe819026f1e4ddbfbea1b412685152619 (diff) | |
download | external_libcxx-96c60b482ef2614185e3fa0c606f87c3efcf1e85.tar.gz external_libcxx-96c60b482ef2614185e3fa0c606f87c3efcf1e85.tar.bz2 external_libcxx-96c60b482ef2614185e3fa0c606f87c3efcf1e85.zip |
Patch contributed by Dev Dude for mingw64 port.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@162188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/memory.cpp')
-rw-r--r-- | src/memory.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/memory.cpp b/src/memory.cpp index 1c108b8c3..3884a2b3a 100644 --- a/src/memory.cpp +++ b/src/memory.cpp @@ -119,6 +119,8 @@ __shared_weak_count::__get_deleter(const type_info&) const _NOEXCEPT #endif // _LIBCPP_NO_RTTI +#if __has_feature(cxx_atomic) + static const std::size_t __sp_mut_count = 16; static mutex mut_back[__sp_mut_count]; @@ -162,6 +164,7 @@ __get_sp_mut(const void* p) return muts[hash<const void*>()(p) & (__sp_mut_count-1)]; } +#endif // __has_feature(cxx_atomic) void declare_reachable(void*) |