[lldb] Undef GetMessage when including Windows.h
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 9 Mar 2022 03:55:46 +0000 (19:55 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 9 Mar 2022 04:07:49 +0000 (20:07 -0800)
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.

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

index 11594c6..d53d4b9 100644 (file)
 #undef NOMINMAX // undef a previous definition to avoid warning
 #define NOMINMAX
 #include <windows.h>
+#undef CreateProcess
+#undef GetMessage
 #undef GetUserName
 #undef LoadImage
-#undef CreateProcess
 #undef Yield
 #undef far
 #undef near