Host: remove Yield on Windows
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 7 Dec 2018 00:31:34 +0000 (00:31 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 7 Dec 2018 00:31:34 +0000 (00:31 +0000)
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

index 3dc9f77..98a675e 100644 (file)
@@ -21,6 +21,7 @@
 #undef GetUserName
 #undef LoadImage
 #undef CreateProcess
+#undef Yield
 #undef far
 #undef near
 #undef FAR