mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-06 02:29:51 +00:00
Improve compatibility with older versions of Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71855 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0310d768a1
commit
2c34f320ea
@ -70,7 +70,7 @@ namespace llvm {
|
||||
|
||||
typedef volatile long cas_flag;
|
||||
inline cas_flag CompareAndSwap(cas_flag* dest, cas_flag exc, cas_flag c) {
|
||||
return _InterlockedCompareExchange(dest, exc, c);
|
||||
return InterlockedCompareExchange(dest, exc, c);
|
||||
}
|
||||
#else
|
||||
#error No memory atomics implementation for your platform!
|
||||
|
Loading…
x
Reference in New Issue
Block a user