aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-05-15 10:40:23 +0000
committerOwen Anderson <resistor@mac.com>2009-05-15 10:40:23 +0000
commit2c34f320eadea0e45d8b907941649551c796a504 (patch)
tree4095c3565d841f8ef172cb6799ec6e6578771521
parent0310d768a1e267935729fdeee0d677ebf7095cb3 (diff)
downloadexternal_llvm-2c34f320eadea0e45d8b907941649551c796a504.zip
external_llvm-2c34f320eadea0e45d8b907941649551c796a504.tar.gz
external_llvm-2c34f320eadea0e45d8b907941649551c796a504.tar.bz2
Improve compatibility with older versions of Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71855 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/System/Atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/System/Atomic.h b/include/llvm/System/Atomic.h
index d062f99..03af143 100644
--- a/include/llvm/System/Atomic.h
+++ b/include/llvm/System/Atomic.h
@@ -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!