diff options
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/Windows/Threading.inc | 5 |
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) { |

