[Lldb-commits] [PATCH] D67861: [LLDB] Check for the __MINGW32__ define instead of __MINGW64
Martin Storsjö via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 20 13:45:07 PDT 2019
mstorsjo created this revision.
mstorsjo added reviewers: hhb, xen2, labath.
Herald added subscribers: JDevlieghere, abidh.
Herald added a project: LLDB.
`__MINGW64__` is only defined for 64 bit targets, and the define without trailing underscores is never defined automatically (neither by clang nor by gcc), while `__MINGW32__` is defined for any MinGW target, both 32 and 64 bit.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D67861
Files:
lldb/source/Host/windows/Windows.cpp
Index: lldb/source/Host/windows/Windows.cpp
===================================================================
--- lldb/source/Host/windows/Windows.cpp
+++ lldb/source/Host/windows/Windows.cpp
@@ -48,7 +48,7 @@
size_t buflen;
va_list ap2;
-#if defined(_MSC_VER) || defined(__MINGW64)
+#if defined(_MSC_VER) || defined(__MINGW32__)
ap2 = ap;
len = _vscprintf(fmt, ap2);
#else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67861.221107.patch
Type: text/x-patch
Size: 391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190920/57c41111/attachment.bin>
More information about the lldb-commits
mailing list