Skip to content

Commit 2e9c585

Browse files
authored
Merge pull request #39355 from apple/fix-8c5d383aab38be2ea91f808b47f9064fec9f94fe
Concurrency: add Windows support to `SWIFT_TASK_PRINTF_DEBUG`
2 parents 6cc14bf + 6c2888c commit 2e9c585

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

stdlib/public/Concurrency/TaskPrivate.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@
2727

2828
#include "../runtime/StackAllocator.h"
2929

30+
#if HAVE_PTHREAD_H
31+
#include <pthread.h>
32+
#endif
33+
#if defined(_WIN32)
34+
#define WIN32_LEAN_AND_MEAN
35+
#define VC_EXTRA_LEAN
36+
#define NOMINMAX
37+
#include <Windows.h>
38+
#endif
39+
3040
namespace swift {
3141

3242
// Uncomment to enable helpful debug spew to stderr

0 commit comments

Comments
 (0)