diff options
author | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2014-03-12 10:45:23 +0000 |
---|---|---|
committer | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2014-03-12 10:45:23 +0000 |
commit | 6eff101926830481b638e451c58e82275509d224 (patch) | |
tree | 94c25c23b1352ecb3a4dcd7d4836c4df7cbabba8 /lldb/source/Host | |
parent | bdb515916c1f9787b7e9d8a56468bfe08b975098 (diff) | |
download | bcm5719-llvm-6eff101926830481b638e451c58e82275509d224.tar.gz bcm5719-llvm-6eff101926830481b638e451c58e82275509d224.zip |
Replace some _MSC_VER with _WIN32.
This allows to use some code for mingw which was previously only
used for MSVC.
llvm-svn: 203651
Diffstat (limited to 'lldb/source/Host')
-rw-r--r-- | lldb/source/Host/common/File.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Host/common/SocketAddress.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Host/windows/EditLineWin.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index 1051757932d..500b03ce42e 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -887,7 +887,7 @@ File::CalculateInteractiveAndTerminal () { m_is_interactive = eLazyBoolNo; m_is_real_terminal = eLazyBoolNo; -#ifdef _MSC_VER +#ifdef _WIN32 if (_isatty(fd)) { m_is_interactive = eLazyBoolYes; diff --git a/lldb/source/Host/common/SocketAddress.cpp b/lldb/source/Host/common/SocketAddress.cpp index 75f3cd13f58..971c4692bbb 100644 --- a/lldb/source/Host/common/SocketAddress.cpp +++ b/lldb/source/Host/common/SocketAddress.cpp @@ -11,7 +11,7 @@ #include <stddef.h> // C Includes -#if !defined(_MSC_VER) +#if !defined(_WIN32) #include <arpa/inet.h> #endif #include <assert.h> diff --git a/lldb/source/Host/windows/EditLineWin.cpp b/lldb/source/Host/windows/EditLineWin.cpp index d3d029d6652..381bf805067 100644 --- a/lldb/source/Host/windows/EditLineWin.cpp +++ b/lldb/source/Host/windows/EditLineWin.cpp @@ -8,7 +8,7 @@ //===----------------------------------------------------------------------===// // this file is only relevant for Visual C++ -#if defined( _MSC_VER ) +#if defined( _WIN32 ) #include "lldb/Host/windows/windows.h" |