Index: include/llvm/Support/SwapByteOrder.h =================================================================== --- include/llvm/Support/SwapByteOrder.h +++ include/llvm/Support/SwapByteOrder.h @@ -18,6 +18,9 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/DataTypes.h" #include +#if defined(_MSC_VER) && !defined(_DEBUG) +#include +#endif namespace llvm { namespace sys { Index: lib/Support/Windows/Signals.inc =================================================================== --- lib/Support/Windows/Signals.inc +++ lib/Support/Windows/Signals.inc @@ -28,6 +28,7 @@ #ifdef __MINGW32__ #include #else + #include #include #endif #include