Author: Jonas Devlieghere Date: 2022-03-08T20:07:49-08:00 New Revision: 43374bee0e0641be417f22fc73c46a914de5ea71
URL: https://github.com/llvm/llvm-project/commit/43374bee0e0641be417f22fc73c46a914de5ea71 DIFF: https://github.com/llvm/llvm-project/commit/43374bee0e0641be417f22fc73c46a914de5ea71.diff LOG: [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. Added: Modified: lldb/include/lldb/Host/windows/windows.h Removed: ################################################################################ diff --git a/lldb/include/lldb/Host/windows/windows.h b/lldb/include/lldb/Host/windows/windows.h index 11594c658c18c..d53d4b9967268 100644 --- a/lldb/include/lldb/Host/windows/windows.h +++ b/lldb/include/lldb/Host/windows/windows.h @@ -17,9 +17,10 @@ #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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits