Skip to content

Commit 2028716

Browse files
Guard libdispatch header for single thread executor
1 parent 1e19f25 commit 2028716

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Concurrency/TaskGroup.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
#include "queue" // TODO: remove and replace with usage of our mpsc queue
3434
#include <atomic>
3535
#include <assert.h>
36+
#if !SWIFT_CONCURRENCY_COOPERATIVE_GLOBAL_EXECUTOR
3637
#include <dispatch/dispatch.h>
38+
#endif
3739

3840
#if !defined(_WIN32)
3941
#include <dlfcn.h>

0 commit comments

Comments
 (0)