File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1919#include < atomic>
2020#include < new>
2121
22- #ifdef _WIN32
23- // On Windows, an include below triggers an indirect include of minwindef.h
24- // which contains a definition of the `max` macro, generating an error in our
25- // use of std::max in this file. This define prevents those macros from being
26- // defined.
27- #define NOMINMAX
28- #endif
29-
3022#include " ../CompatibilityOverride/CompatibilityOverride.h"
3123#include " swift/Runtime/Atomic.h"
3224#include " swift/Runtime/AccessibleFunction.h"
6860#include < sys/syscall.h>
6961#endif
7062
63+ #if defined(_WIN32)
64+ #include < io.h>
65+ #endif
66+
7167#if SWIFT_OBJC_INTEROP
7268extern " C" void *objc_autoreleasePoolPush ();
7369extern " C" void objc_autoreleasePoolPop (void *);
Original file line number Diff line number Diff line change 1414//
1515// ===----------------------------------------------------------------------===//
1616
17+ #ifdef _WIN32
18+ #define WIN32_LEAN_AND_MEAN
19+ #define NOMINMAX
20+ #include < windows.h>
21+ #endif
22+
1723#include " ../CompatibilityOverride/CompatibilityOverride.h"
1824#include " swift/Runtime/Concurrency.h"
1925#include " swift/ABI/Task.h"
You can’t perform that action at this time.
0 commit comments