Skip to content

Commit a35c7b3

Browse files
committed
Concurency: add Windows.h include
The Windows path uses `LoadLibrary` which should use `Windows.h` for the declaration as per MSDN. This avoids an unnecessary warning when building for Windows.
1 parent 0c67ce6 commit a35c7b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/public/Concurrency/DispatchGlobalExecutor.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525
#if SWIFT_CONCURRENCY_ENABLE_DISPATCH
2626
#include <dispatch/dispatch.h>
27-
#if !defined(_WIN32)
27+
#if defined(_WIN32)
28+
#include <Windows.h>
29+
#else
2830
#include <dlfcn.h>
2931
#endif
3032
#endif

0 commit comments

Comments
 (0)