From 7dd28530c93b907cc26064232c5498e45e838723 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 30 May 2023 20:23:09 +0200 Subject: Changed extern to dllimport for Sleep() function. --- include/stc/algo/coroutine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stc/algo/coroutine.h b/include/stc/algo/coroutine.h index c786eb51..7f2e1244 100644 --- a/include/stc/algo/coroutine.h +++ b/include/stc/algo/coroutine.h @@ -157,7 +157,7 @@ typedef struct { #if defined _WIN32 static inline void csleep_ms(long msec) { - extern void Sleep(unsigned long); + __declspec(dllimport) void Sleep(unsigned long); Sleep((unsigned long)msec); } #else -- cgit v1.2.3