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
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
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits