diff src/c-ringbuf/ringbuf.h @ 285:89fe52066db1 tip master

MSCV missing ssize_t fix
author Jamie Bullock <jamie@jamiebullock.com>
date Tue, 16 Jul 2019 18:29:20 +0100
parents 1f18f47e29eb
children
line wrap: on
line diff
--- a/src/c-ringbuf/ringbuf.h	Mon Apr 01 21:07:32 2019 +0100
+++ b/src/c-ringbuf/ringbuf.h	Tue Jul 16 18:29:20 2019 +0100
@@ -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;
 
 /*