diff options
| author | Tyge Løvset <[email protected]> | 2023-05-30 20:23:09 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-30 20:23:09 +0200 |
| commit | 7dd28530c93b907cc26064232c5498e45e838723 (patch) | |
| tree | 5ccf8d1c954941e7fcbd16b450b56400fd5518b3 /include | |
| parent | 80df921622c97634aeea31821a61f46885324d9c (diff) | |
| download | STC-modified-7dd28530c93b907cc26064232c5498e45e838723.tar.gz STC-modified-7dd28530c93b907cc26064232c5498e45e838723.zip | |
Changed extern to dllimport for Sleep() function.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/algo/coroutine.h | 2 |
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 |
