Skip to content

Commit 709d06f

Browse files
committed
[Threading][Windows] Undefine Yield and ERROR.
`windows.h` defines a couple of very unhelpfully named macros. Undefine them after including it. rdar://90776105
1 parent 4527c08 commit 709d06f

File tree

1 file changed

+4
-0
lines changed
  • include/swift/Threading/Impl

1 file changed

+4
-0
lines changed

include/swift/Threading/Impl/Win32.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#define NOMINMAX
2222
#include <windows.h>
2323

24+
// <windows.h> defines some unhelpful macros
25+
#undef Yield
26+
#undef ERROR
27+
2428
#include <atomic>
2529

2630
namespace swift {

0 commit comments

Comments
 (0)