MSVC do not have usleep

This commit is contained in:
Alexander S. Aganichev 2002-11-20 13:10:00 +00:00
parent 1dc43b9738
commit b22415f6ea

View File

@ -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