From 17d176ef1fc48b3c3a6b2ee8080914b19bfe78db Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 7 Dec 2018 00:31:34 +0000 Subject: [PATCH] Host: remove Yield on Windows Windows provides a Yield function-like macro that allows a thread to yield the CPU. However, this conflicts with `Yield` in swift. Undefine `Yield` to allow building lldb with swift support. llvm-svn: 348556 --- lldb/include/lldb/Host/windows/windows.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/include/lldb/Host/windows/windows.h b/lldb/include/lldb/Host/windows/windows.h index 3dc9f77..98a675e 100644 --- a/lldb/include/lldb/Host/windows/windows.h +++ b/lldb/include/lldb/Host/windows/windows.h @@ -21,6 +21,7 @@ #undef GetUserName #undef LoadImage #undef CreateProcess +#undef Yield #undef far #undef near #undef FAR -- 2.7.4