move sleep shim to posix_win.c
This commit is contained in:
parent
63161e85dc
commit
9d5eb631e3
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user