summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-10-30 23:10:01 +0000
committerHans Wennborg <hans@hanshq.net>2014-10-30 23:10:01 +0000
commit6cda0d7269188f9b21c6dfe19a6f32f8432918da (patch)
tree9f4a6504f5668fefeda002dfdfcfd7b2362ea8a7 /llvm/lib/Support/Windows
parent970555bc08764f21ee10f8d36acc66ef3c603d5c (diff)
downloadbcm5719-llvm-6cda0d7269188f9b21c6dfe19a6f32f8432918da.tar.gz
bcm5719-llvm-6cda0d7269188f9b21c6dfe19a6f32f8432918da.zip
Speculative fix for Windows build after r220932
llvm-svn: 220936
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r--llvm/lib/Support/Windows/Threading.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Support/Windows/Threading.inc b/llvm/lib/Support/Windows/Threading.inc
index 099c6b28bf6..41fdd981fd6 100644
--- a/llvm/lib/Support/Windows/Threading.inc
+++ b/llvm/lib/Support/Windows/Threading.inc
@@ -1,5 +1,10 @@
#include <winbase.h>
+#ifdef MemoryFence
+// WinNT.h seems to define a MemoryFence macro.
+#undef MemoryFence
+#endif
+
void llvm::call_once(once_flag &flag, void (*fptr)(void)) {
while (flag != Done) {
if (flag == Wait) {
OpenPOWER on IntegriCloud