summaryrefslogtreecommitdiffhomepage
path: root/include/stc/algo
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-05-30 20:23:09 +0200
committerTyge Løvset <[email protected]>2023-05-30 20:23:09 +0200
commit7dd28530c93b907cc26064232c5498e45e838723 (patch)
tree5ccf8d1c954941e7fcbd16b450b56400fd5518b3 /include/stc/algo
parent80df921622c97634aeea31821a61f46885324d9c (diff)
downloadSTC-modified-7dd28530c93b907cc26064232c5498e45e838723.tar.gz
STC-modified-7dd28530c93b907cc26064232c5498e45e838723.zip
Changed extern to dllimport for Sleep() function.
Diffstat (limited to 'include/stc/algo')
-rw-r--r--include/stc/algo/coroutine.h2
1 files changed, 1 insertions, 1 deletions
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