mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-09 11:05:56 +00:00
Atomic: support clang 3.4+
This commit is contained in:
parent
0908bd64dc
commit
b3c7395a23
2 changed files with 6 additions and 1 deletions
|
@ -45,7 +45,8 @@ inline void AtomicOr(volatile u32& target, u32 value) {
|
|||
__sync_or_and_fetch(&target, value);
|
||||
}
|
||||
|
||||
#ifdef __clang__
|
||||
// Support clang versions older than 3.4.
|
||||
#if __clang__ && !__has_feature(cxx_atomic)
|
||||
template <typename T>
|
||||
_Atomic(T)* ToC11Atomic(volatile T* loc)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue