Merge #8084 'build/win: support MSVC'

This commit is contained in:
Justin M. Keyes
2018-03-08 20:26:18 +01:00
committed by GitHub
26 changed files with 290 additions and 96 deletions

View File

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