diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
tree | 4def12e759965de927d963ac65840d663ef9d1ea /lib/Support/Threading.cpp | |
parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) |
Diffstat (limited to 'lib/Support/Threading.cpp')
-rw-r--r-- | lib/Support/Threading.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Support/Threading.cpp b/lib/Support/Threading.cpp index ca7f3f64aa37e..e8f5622d0e5c8 100644 --- a/lib/Support/Threading.cpp +++ b/lib/Support/Threading.cpp @@ -16,6 +16,7 @@ #include "llvm/Config/config.h" #include "llvm/Support/Atomic.h" #include "llvm/Support/Mutex.h" +#include "llvm/Support/thread.h" #include <cassert> using namespace llvm; @@ -71,6 +72,11 @@ void llvm::llvm_execute_on_thread(void (*Fn)(void*), void *UserData, #include "Windows/WindowsSupport.h" #include <process.h> +// Windows will at times define MemoryFence. +#ifdef MemoryFence +#undef MemoryFence +#endif + struct ThreadInfo { void (*func)(void*); void *param; |