We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b4b4e1 commit cdfa45cCopy full SHA for cdfa45c
stdlib/public/Concurrency/Actor.cpp
@@ -17,6 +17,14 @@
17
18
#include "swift/Runtime/Concurrency.h"
19
20
+#ifdef _WIN32
21
+// On Windows, an include below triggers an indirect include of minwindef.h
22
+// which contains a definition of the `max` macro, generating an error in our
23
+// use of std::max in this file. This define prevents those macros from being
24
+// defined.
25
+#define NOMINMAX
26
+#endif
27
+
28
#include "../CompatibilityOverride/CompatibilityOverride.h"
29
#include "../runtime/ThreadLocalStorage.h"
30
#include "swift/Runtime/Atomic.h"
0 commit comments