Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistently include "Platform.h" instead of including <windows.h>
Platform.h includes lldb/Host/windows/windows.h, which overrides e.g. NTDDI_VERSION and _WIN32_WINNT before including <windows.h>. If we directly include <windows.h> somewhere first, and then later include lldb/Host/windows/windows.h (via Platform.h) we end up redefining NTDDI_VERSION. Also include lldb/Host/windows/PosixApi.h (for consistency, as it ends up included in some files but not in others) and add ifdefs around some defines that are defined by lldb's PosixApi.h. (Adding ifdefs instead of removing the definitions altogether, as older versions of lldb might not have the same defines.)
- Loading branch information
1 parent
f05c9d2
commit 89945aa
Showing
4 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters