build/msvc: Make shell-test work

MSVC doesn't have unistd.h or usleep() so it was replaced with the
Sleep() WinAPI function.
This commit is contained in:
b-r-o-c-k 2018-03-04 17:44:23 -06:00
parent 01fc02beee
commit 773f23e00d

View File

@ -4,7 +4,12 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
#ifdef WIN32
#include <Windows.h>
#define usleep(usecs) Sleep(usecs/1000)
#else
#include <unistd.h> #include <unistd.h>
#endif
static void wait(void) static void wait(void)
{ {