diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/SwapByteOrder.h | 3 | ||||
-rw-r--r-- | llvm/lib/Support/Windows/Signals.inc | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/SwapByteOrder.h b/llvm/include/llvm/Support/SwapByteOrder.h index 91693aceb27..71d3724950a 100644 --- a/llvm/include/llvm/Support/SwapByteOrder.h +++ b/llvm/include/llvm/Support/SwapByteOrder.h @@ -18,6 +18,9 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/DataTypes.h" #include <cstddef> +#if defined(_MSC_VER) && !defined(_DEBUG) +#include <stdlib.h> +#endif namespace llvm { namespace sys { diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc index 1d6263a3d7d..f739421eece 100644 --- a/llvm/lib/Support/Windows/Signals.inc +++ b/llvm/lib/Support/Windows/Signals.inc @@ -28,6 +28,7 @@ #ifdef __MINGW32__ #include <imagehlp.h> #else + #include <crtdbg.h> #include <dbghelp.h> #endif #include <psapi.h> |