[llvm] r290263 - Add missing includes on Windows.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 10:50:53 PST 2016
Author: zturner
Date: Wed Dec 21 12:50:52 2016
New Revision: 290263
URL: http://llvm.org/viewvc/llvm-project?rev=290263&view=rev
Log:
Add missing includes on Windows.
Patch by Andrey Khalyavin
Differential Revision: https://reviews.llvm.org/D27915
Modified:
llvm/trunk/include/llvm/Support/SwapByteOrder.h
llvm/trunk/lib/Support/Windows/Signals.inc
Modified: llvm/trunk/include/llvm/Support/SwapByteOrder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/SwapByteOrder.h?rev=290263&r1=290262&r2=290263&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/SwapByteOrder.h (original)
+++ llvm/trunk/include/llvm/Support/SwapByteOrder.h Wed Dec 21 12:50:52 2016
@@ -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 {
Modified: llvm/trunk/lib/Support/Windows/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Signals.inc?rev=290263&r1=290262&r2=290263&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Signals.inc (original)
+++ llvm/trunk/lib/Support/Windows/Signals.inc Wed Dec 21 12:50:52 2016
@@ -28,6 +28,7 @@
#ifdef __MINGW32__
#include <imagehlp.h>
#else
+ #include <crtdbg.h>
#include <dbghelp.h>
#endif
#include <psapi.h>
More information about the llvm-commits
mailing list