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 19
19
#include < atomic>
20
20
#include < new>
21
21
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
-
30
22
#include " ../CompatibilityOverride/CompatibilityOverride.h"
31
23
#include " swift/Runtime/Atomic.h"
32
24
#include " swift/Runtime/AccessibleFunction.h"
68
60
#include < sys/syscall.h>
69
61
#endif
70
62
63
+ #if defined(_WIN32)
64
+ #include < io.h>
65
+ #endif
66
+
71
67
#if SWIFT_OBJC_INTEROP
72
68
extern " C" void *objc_autoreleasePoolPush ();
73
69
extern " C" void objc_autoreleasePoolPop (void *);
Original file line number Diff line number Diff line change 14
14
//
15
15
// ===----------------------------------------------------------------------===//
16
16
17
+ #ifdef _WIN32
18
+ #define WIN32_LEAN_AND_MEAN
19
+ #define NOMINMAX
20
+ #include < windows.h>
21
+ #endif
22
+
17
23
#include " ../CompatibilityOverride/CompatibilityOverride.h"
18
24
#include " swift/Runtime/Concurrency.h"
19
25
#include " swift/ABI/Task.h"
You can’t perform that action at this time.
0 commit comments