Skip to content

Commit 43374be

Browse files
committed
[lldb] Undef GetMessage when including Windows.h
GetMessage is a define that can expand to GetMessageA (ANSI) or GetMessageW (wide). Avoid the issue when including this header by undef'ing the macro.
1 parent fcd4ee5 commit 43374be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/include/lldb/Host/windows/windows.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
#undef NOMINMAX // undef a previous definition to avoid warning
1818
#define NOMINMAX
1919
#include <windows.h>
20+
#undef CreateProcess
21+
#undef GetMessage
2022
#undef GetUserName
2123
#undef LoadImage
22-
#undef CreateProcess
2324
#undef Yield
2425
#undef far
2526
#undef near

0 commit comments

Comments
 (0)