MSVC do not have usleep
This commit is contained in:
parent
1dc43b9738
commit
b22415f6ea
@ -139,7 +139,7 @@ inline struct tm* glocaltime(time_t* arg) {
|
||||
|
||||
#if defined(__OS2__)
|
||||
inline void usleep(long duration) { DosSleep(duration); }
|
||||
#elif defined(__MINGW32__)
|
||||
#elif defined(__MINGW32__) || defined(_MSC_VER)
|
||||
inline void usleep(long duration) { Sleep(duration); }
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user