move sleep shim to posix_win.c

This commit is contained in:
Brent Cook 2015-07-21 12:52:29 -06:00
parent 63161e85dc
commit 9d5eb631e3
2 changed files with 8 additions and 5 deletions

View File

@ -189,4 +189,11 @@ int gettimeofday(struct timeval * tp, struct timezone * tzp)
tp->tv_usec = (long)(system_time.wMilliseconds * 1000);
return 0;
}
unsigned int sleep(unsigned int seconds)
{
Sleep(seconds * 1000);
return seconds;
}
#endif

View File

@ -21,11 +21,7 @@
#define access _access
static inline unsigned int sleep(unsigned int seconds)
{
Sleep(seconds * 1000);
return seconds;
}
unsigned int sleep(unsigned int seconds);
#endif