From: Owen Anderson Date: Fri, 15 May 2009 10:40:23 +0000 (+0000) Subject: Improve compatibility with older versions of Windows. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2c34f320eadea0e45d8b907941649551c796a504;p=oota-llvm.git Improve compatibility with older versions of Windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71855 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/System/Atomic.h b/include/llvm/System/Atomic.h index d062f995c98..03af143ed5c 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!