]> granicus.if.org Git - llvm/commitdiff
Undef MemoryFence, which is defined to _mm_mfence by winnt.h
authorReid Kleckner <rnk@google.com>
Tue, 14 Feb 2017 01:38:14 +0000 (01:38 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 14 Feb 2017 01:38:14 +0000 (01:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295014 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Atomic.h

index d03714b009c513f8b093c2cdc152f74d5d1409bc..552313f0c2412bfebc895832ac06d8159f607497 100644 (file)
 
 #include "llvm/Support/DataTypes.h"
 
+// Windows will at times define MemoryFence.
+#ifdef MemoryFence
+#undef MemoryFence
+#endif
+
 namespace llvm {
   namespace sys {
     void MemoryFence();