projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b57390
)
Speculative fix for Windows build after r220932
author
Hans Wennborg
<hans@hanshq.net>
Thu, 30 Oct 2014 23:10:01 +0000
(23:10 +0000)
committer
Hans Wennborg
<hans@hanshq.net>
Thu, 30 Oct 2014 23:10:01 +0000
(23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220936
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Windows/Threading.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Windows/Threading.inc
b/lib/Support/Windows/Threading.inc
index
099c6b2
..
41fdd98
100644
(file)
--- a/
lib/Support/Windows/Threading.inc
+++ b/
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) {