Skip to content

Commit

Permalink
Undef MemoryFence, which is defined to _mm_mfence by winnt.h
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295014 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rnk committed Feb 14, 2017
1 parent 6568ff6 commit 75ebce9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/llvm/Support/Atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@

#include "llvm/Support/DataTypes.h"

// Windows will at times define MemoryFence.
#ifdef MemoryFence
#undef MemoryFence
#endif

namespace llvm {
namespace sys {
void MemoryFence();
Expand Down

0 comments on commit 75ebce9

Please sign in to comment.