aboutsummaryrefslogtreecommitdiff
path: root/src/c-ringbuf/ringbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/c-ringbuf/ringbuf.h')
-rw-r--r--src/c-ringbuf/ringbuf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c-ringbuf/ringbuf.h b/src/c-ringbuf/ringbuf.h
index e971317..c9e9398 100644
--- a/src/c-ringbuf/ringbuf.h
+++ b/src/c-ringbuf/ringbuf.h
@@ -30,6 +30,10 @@
#include <sys/types.h>
#include <stdbool.h>
+#ifdef _MSC_VER
+ typedef ptrdiff_t ssize_t;
+#endif
+
typedef struct ringbuf_t *ringbuf_t;
/*