summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/windows/ProcessRunLock.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/windows/ProcessRunLock.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/windows/ProcessRunLock.cpp')
-rw-r--r--lldb/source/Host/windows/ProcessRunLock.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lldb/source/Host/windows/ProcessRunLock.cpp b/lldb/source/Host/windows/ProcessRunLock.cpp
index 40a32122540..64276917fc8 100644
--- a/lldb/source/Host/windows/ProcessRunLock.cpp
+++ b/lldb/source/Host/windows/ProcessRunLock.cpp
@@ -10,16 +10,6 @@
#include "lldb/Host/ProcessRunLock.h"
#include "lldb/Host/windows/windows.h"
-namespace {
-#if defined(__MINGW32__)
-// Taken from WinNT.h
-typedef struct _RTL_SRWLOCK { PVOID Ptr; } RTL_SRWLOCK, *PRTL_SRWLOCK;
-
-// Taken from WinBase.h
-typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK;
-#endif
-}
-
static PSRWLOCK GetLock(lldb::rwlock_t lock) {
return static_cast<PSRWLOCK>(lock);
}
OpenPOWER on IntegriCloud