Can build with (original llvm) clang-cl on windows

This commit is contained in:
tamasmeszaros 2019-08-01 16:03:52 +02:00
parent ec9117cc06
commit 7d25d8c677
8 changed files with 40 additions and 8 deletions

View file

@ -63,10 +63,15 @@ extern "C" {
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
#ifdef _MSC_VER
#include <stdint.h>
struct timezone;
struct timeval;
#else
#ifndef __cplusplus
/* should be in some equivalent to <sys/types.h> */
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef __int64 int64_t;
typedef unsigned __int8 uint8_t;
@ -74,6 +79,7 @@ typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
#endif
#endif
int usleep(unsigned usec);