Skip to content

Commit f5b3d85

Browse files
committed
[TaskLocals] Windows: fix missing io.h
TaskLocals print a verbose error before crashing if API is abused within a task-group. This printing needs `io.h` on windows.
1 parent d25ac31 commit f5b3d85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/Concurrency/TaskLocal.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#include <android/log.h>
2727
#endif
2828

29+
#if defined(_WIN32)
30+
#include <io.h>
31+
#endif
32+
2933
using namespace swift;
3034

3135
// =============================================================================

0 commit comments

Comments
 (0)