From 1446dc9ba819441283fab5b7fce12f7fa5a4ad17 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 7 Jan 2014 12:37:13 +0000 Subject: [PATCH] Try to fix the windows build. The comments in other files don't seem to be quite accurate. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198690 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Process.inc | 9 +++++---- lib/Support/Windows/Signals.inc | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc index 939d350fb07..750097eecf4 100644 --- a/lib/Support/Windows/Process.inc +++ b/lib/Support/Windows/Process.inc @@ -12,15 +12,16 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/Allocator.h" +#include + +// The Windows.h header must be after LLVM and standard headers. +#include "Windows.h" + #include #include -#include #include #include -// The Windows.h header must be the last one included. -#include "Windows.h" - #ifdef __MINGW32__ #if (HAVE_LIBPSAPI != 1) #error "libpsapi.a should be present" diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index 2997199f117..5add76a0c03 100644 --- a/lib/Support/Windows/Signals.inc +++ b/lib/Support/Windows/Signals.inc @@ -16,6 +16,9 @@ #include #include +// The Windows.h header must be after LLVM and standard headers. +#include "Windows.h" + #ifdef __MINGW32__ #include #else @@ -23,9 +26,6 @@ #endif #include -// The Windows.h header must be the last one included. -#include "Windows.h" - #ifdef _MSC_VER #pragma comment(lib, "psapi.lib") #pragma comment(lib, "dbghelp.lib") -- 2.34.1