add windows port

use windows.h for WIN crossbuild
This commit is contained in:
ca333
2018-04-20 01:56:09 +02:00
committed by GitHub
parent 0a4ffaff30
commit 942e45b592

View File

@@ -1,6 +1,11 @@
#define _GNU_SOURCE 1
#if __linux
#include <sys/syscall.h>
#elif defined(_WIN32) || defined(_WIN64)
#include <windows.h>
#endif
#include <unistd.h>
#include <pthread.h>