diff options
author | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2015-02-11 10:14:13 +0000 |
---|---|---|
committer | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2015-02-11 10:14:13 +0000 |
commit | c4d5ed06cde28a4c209385a2513e338673834c80 (patch) | |
tree | ca039dda02ac679ec5937a47c258e6be67413f23 /lldb/source/lldb.cpp | |
parent | f14735937626fcda45254aae4699acb8d0b89b31 (diff) | |
download | bcm5719-llvm-c4d5ed06cde28a4c209385a2513e338673834c80.tar.gz bcm5719-llvm-c4d5ed06cde28a4c209385a2513e338673834c80.zip |
Fix Mingw build.
Following changes are done.
Add missing headers.
Replace _snprintf with snprintf. It is already changed to _snprintf for MSVC.
Add a file in the build for autoconf.
Call DynamicLoaderWindows::Terminate and DynamicLoaderWindows::Initialize only for MSVC build.
Reviewed in http://reviews.llvm.org/D7536.
llvm-svn: 228822
Diffstat (limited to 'lldb/source/lldb.cpp')
-rw-r--r-- | lldb/source/lldb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/lldb.cpp b/lldb/source/lldb.cpp index 2ac8296b4d0..6988bc2b903 100644 --- a/lldb/source/lldb.cpp +++ b/lldb/source/lldb.cpp @@ -209,7 +209,7 @@ lldb_private::Initialize () //---------------------------------------------------------------------- ProcessLinux::Initialize(); #endif -#if defined(_WIN32) +#if defined(_MSC_VER) DynamicLoaderWindows::Initialize(); ProcessWindows::Initialize(); #endif @@ -298,7 +298,7 @@ lldb_private::Terminate () Debugger::SettingsTerminate (); -#if defined (_WIN32) +#if defined(_MSC_VER) DynamicLoaderWindows::Terminate(); #endif |