Mercurial > hg > libxtract
comparison 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 |
comparison
equal
deleted
inserted
replaced
284:58af29df9008 | 285:89fe52066db1 |
---|---|
27 */ | 27 */ |
28 | 28 |
29 #include <stddef.h> | 29 #include <stddef.h> |
30 #include <sys/types.h> | 30 #include <sys/types.h> |
31 #include <stdbool.h> | 31 #include <stdbool.h> |
32 | |
33 #ifdef _MSC_VER | |
34 typedef ptrdiff_t ssize_t; | |
35 #endif | |
32 | 36 |
33 typedef struct ringbuf_t *ringbuf_t; | 37 typedef struct ringbuf_t *ringbuf_t; |
34 | 38 |
35 /* | 39 /* |
36 * Create a new ring buffer with the given capacity (usable | 40 * Create a new ring buffer with the given capacity (usable |