zig/lib/libc/mingw/misc/mingw_usleep.c
Andrew Kelley 49d1a4c562 move lib dirs to lib subdir
also start prefering NtDll API. so far:
 * NtQueryInformationFile
 * NtClose

adds a performance workaround for windows unicode conversion. but that
should probably be removed before merging
2019-07-15 17:54:50 -04:00

19 lines
252 B
C

#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);
int __cdecl
usleep (useconds_t us)
{
if (us != 0)
Sleep (us / 1000);
return 0;
}