summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/File.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/Host/common/File.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/Host/common/File.cpp')
-rw-r--r--lldb/source/Host/common/File.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp
index fcd1416e9ce..4eb9ae15f06 100644
--- a/lldb/source/Host/common/File.cpp
+++ b/lldb/source/Host/common/File.cpp
@@ -222,7 +222,7 @@ Error File::Open(const char *path, uint32_t options, uint32_t permissions) {
}
do {
-#ifdef _WIN32
+#ifdef _MSC_VER
std::wstring wpath;
if (!llvm::ConvertUTF8toWide(path, wpath)) {
m_descriptor = -1;
OpenPOWER on IntegriCloud