Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2019-08-01 17:03:52 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-08-01 17:03:52 +0300
commit7d25d8c677cc0edbba469e2a54658ed9468efa60 (patch)
tree9597677d64fa92fa534c62eab627699f044d4f8c /src/avrdude
parentec9117cc06e5b268d5c5b1170312c922fe3e892b (diff)
Can build with (original llvm) clang-cl on windows
Diffstat (limited to 'src/avrdude')
-rw-r--r--src/avrdude/windows/unistd.h8
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);