Speculative fix for Windows build after r220932

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220936 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hans Wennborg 2014-10-30 23:10:01 +00:00
parent 4b57390110
commit 9eb0a09710

View File

@ -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) {