This is an archive of the discontinued LLVM Phabricator instance.

[LLDB] Include lldb/Host/windows/windows.h on any windows target
AbandonedPublic

Authored by mstorsjo on Sep 20 2019, 1:16 PM.

Details

Summary

This fixes MinGW builds, that otherwise fail due to use of undeclared GetLastError() and ERROR_OPERATION_ABORTED.

The use of GetLastError() was added in SVN r366520 (within an #ifdef _WIN32), while the existing include of lldb/Host/windows/windows.h was within #ifdef _MSC_VER. Change the include ifdef to #ifdef _WIN32.

Diff Detail

Event Timeline

mstorsjo created this revision.Sep 20 2019, 1:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2019, 1:16 PM
mstorsjo abandoned this revision.Sep 22 2019, 11:07 AM

D67887 was committed with the same change.