summaryrefslogtreecommitdiffstats
path: root/include/llvm/System/Atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/System/Atomic.h')
-rw-r--r--include/llvm/System/Atomic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/System/Atomic.h b/include/llvm/System/Atomic.h
index 0c05d69..fc19369 100644
--- a/include/llvm/System/Atomic.h
+++ b/include/llvm/System/Atomic.h
@@ -20,7 +20,11 @@ namespace llvm {
namespace sys {
void MemoryFence();
+#ifdef _MSC_VER
+ typedef long cas_flag;
+#else
typedef uint32_t cas_flag;
+#endif
cas_flag CompareAndSwap(volatile cas_flag* ptr,
cas_flag new_value,
cas_flag old_value);
OpenPOWER on IntegriCloud