diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2019-08-01 17:03:52 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2019-08-01 17:03:52 +0300 |
commit | 7d25d8c677cc0edbba469e2a54658ed9468efa60 (patch) | |
tree | 9597677d64fa92fa534c62eab627699f044d4f8c /src/avrdude | |
parent | ec9117cc06e5b268d5c5b1170312c922fe3e892b (diff) |
Can build with (original llvm) clang-cl on windows
Diffstat (limited to 'src/avrdude')
-rw-r--r-- | src/avrdude/windows/unistd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/avrdude/windows/unistd.h b/src/avrdude/windows/unistd.h index 95ba79a34..fe6a8fb87 100644 --- a/src/avrdude/windows/unistd.h +++ b/src/avrdude/windows/unistd.h @@ -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); |