Skip to content

Commit

Permalink
Fix another ordering constraint with windows.h and comment about
Browse files Browse the repository at this point in the history
a revers constraint that we got right (by chance).

llvm-svn: 304792
  • Loading branch information
chandlerc committed Jun 6, 2017
1 parent 3842327 commit aaeada6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
Expand Up @@ -38,8 +38,10 @@
#include <cstring>

#if defined(_MSC_VER)
#include <DbgHelp.h>
#include <Windows.h>

// This must be included after windows.h.
#include <DbgHelp.h>
#pragma comment(lib, "dbghelp.lib")

// Windows.h conflicts with our COFF header definitions.
Expand Down
2 changes: 2 additions & 0 deletions llvm/lib/Support/Atomic.cpp
Expand Up @@ -18,6 +18,8 @@ using namespace llvm;

#if defined(_MSC_VER)
#include <Intrin.h>

// We must include windows.h after Intrin.h.
#include <windows.h>
#undef MemoryFence
#endif
Expand Down

0 comments on commit aaeada6

Please sign in to comment.