diff options
author | Martin Storsjo <martin@martin.st> | 2019-09-23 12:03:56 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2019-09-23 12:03:56 +0000 |
commit | 8b98f12a7ab8c99044f6ab9278da08d96cb0e3e2 (patch) | |
tree | 336904a7226e1cffb57bbff1ae9498286e6edf47 /lldb/source/Utility/SelectHelper.cpp | |
parent | 02d3cc97fa443d09febc49a8694bd138a5582863 (diff) | |
download | bcm5719-llvm-8b98f12a7ab8c99044f6ab9278da08d96cb0e3e2.tar.gz bcm5719-llvm-8b98f12a7ab8c99044f6ab9278da08d96cb0e3e2.zip |
[LLDB] Check for _WIN32 instead of _MSC_VER for code specific to windows in general
These ifdefs contain code that isn't specific to MSVC but useful for
any windows target, like MinGW.
Differential Revision: https://reviews.llvm.org/D67893
llvm-svn: 372592
Diffstat (limited to 'lldb/source/Utility/SelectHelper.cpp')
-rw-r--r-- | lldb/source/Utility/SelectHelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/SelectHelper.cpp b/lldb/source/Utility/SelectHelper.cpp index ff21d99e400..9f5ca586e1e 100644 --- a/lldb/source/Utility/SelectHelper.cpp +++ b/lldb/source/Utility/SelectHelper.cpp @@ -92,7 +92,7 @@ static void updateMaxFd(llvm::Optional<lldb::socket_t> &vold, lldb_private::Status SelectHelper::Select() { lldb_private::Status error; -#ifdef _MSC_VER +#ifdef _WIN32 // On windows FD_SETSIZE limits the number of file descriptors, not their // numeric value. lldbassert(m_fd_map.size() <= FD_SETSIZE); @@ -107,7 +107,7 @@ lldb_private::Status SelectHelper::Select() { for (auto &pair : m_fd_map) { pair.second.PrepareForSelect(); const lldb::socket_t fd = pair.first; -#if !defined(__APPLE__) && !defined(_MSC_VER) +#if !defined(__APPLE__) && !defined(_WIN32) lldbassert(fd < static_cast<int>(FD_SETSIZE)); if (fd >= static_cast<int>(FD_SETSIZE)) { error.SetErrorStringWithFormat("%i is too large for select()", fd); |