Sign in
mingw
/
mingw-w64
/
c150b9469fe913e9f011920d13822b00707568a2
/
.
/
mingw-w64-crt
/
misc
/
mingw_usleep.c
blob: 15aaf56b9aab10e89deb7940a3e9f31891578332 [
file
] [
log
] [
blame
]
#ifndef
WIN32_LEAN_AND_MEAN
#define
WIN32_LEAN_AND_MEAN
#endif
#include
<windows.h>
#include
<sys/types.h>
#include
<errno.h>
int
__cdecl
usleep
(
useconds_t
us
)
{
if
(
us
>=
1000000
)
return
EINVAL
;
else
if
(
us
!=
0
)
Sleep
(
us
/
1000
);
return
0
;
}