aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/Atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Atomic.h')
-rw-r--r--include/llvm/Support/Atomic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/Atomic.h b/include/llvm/Support/Atomic.h
index d03714b009c5..552313f0c241 100644
--- a/include/llvm/Support/Atomic.h
+++ b/include/llvm/Support/Atomic.h
@@ -20,6 +20,11 @@
#include "llvm/Support/DataTypes.h"
+// Windows will at times define MemoryFence.
+#ifdef MemoryFence
+#undef MemoryFence
+#endif
+
namespace llvm {
namespace sys {
void MemoryFence();