summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SystemInitializerFull.cpp
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>2016-12-15 15:00:41 +0000
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>2016-12-15 15:00:41 +0000
commitf6ee79c9262a619752318ea4357a8f4d9f449d5c (patch)
tree48eda83ccf532cea909617ce98ec97ca9c4ca3ff /lldb/source/API/SystemInitializerFull.cpp
parent91b5cf8412a9fffdca96619f02f485c8c48bf852 (diff)
downloadbcm5719-llvm-f6ee79c9262a619752318ea4357a8f4d9f449d5c.tar.gz
bcm5719-llvm-f6ee79c9262a619752318ea4357a8f4d9f449d5c.zip
Fix build for mingw.
Summary: I was building lldb using cross mingw-w64 toolchain on Linux and observed some issues. This is first patch in the series to fix that build. It mostly corrects the case of include files and adjusts some #ifdefs from _MSC_VER to _WIN32 and vice versa. I built lldb on windows with VS after applying this patch to make sure it does not break the build there. Reviewers: zturner, labath, abidh Subscribers: ki.stfu, mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D27759 llvm-svn: 289821
Diffstat (limited to 'lldb/source/API/SystemInitializerFull.cpp')
-rw-r--r--lldb/source/API/SystemInitializerFull.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SystemInitializerFull.cpp b/lldb/source/API/SystemInitializerFull.cpp
index 4ebbc55494c..2df056e1b97 100644
--- a/lldb/source/API/SystemInitializerFull.cpp
+++ b/lldb/source/API/SystemInitializerFull.cpp
@@ -107,7 +107,7 @@
#include "Plugins/Process/FreeBSD/ProcessFreeBSD.h"
#endif
-#if defined(_MSC_VER)
+#if defined(_WIN32)
#include "Plugins/Process/Windows/Common/ProcessWindows.h"
#include "lldb/Host/windows/windows.h"
#endif
@@ -332,7 +332,7 @@ void SystemInitializerFull::Initialize() {
ObjCPlusPlusLanguage::Initialize();
OCamlLanguage::Initialize();
-#if defined(_MSC_VER)
+#if defined(_WIN32)
ProcessWindows::Initialize();
#endif
#if defined(__FreeBSD__)
OpenPOWER on IntegriCloud