aboutsummaryrefslogtreecommitdiff
path: root/py/ringbuf.h
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2020-05-17 10:57:51 +0200
committerDamien George <damien.p.george@gmail.com>2020-05-28 09:56:18 +1000
commit97ccde0c431674113f56b4c9d421b2bc1acb1b56 (patch)
tree477466332a60d6404f1837df2d12cf1d5a701432 /py/ringbuf.h
parent81db22f693d06468d45571a29fc0648a8f5664ce (diff)
py/ringbuf: Fix compilation with msvc.
Older versions do not have "inline" so fetch the definition from mpconfigport.h.
Diffstat (limited to 'py/ringbuf.h')
-rw-r--r--py/ringbuf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/ringbuf.h b/py/ringbuf.h
index 4d316d961..293e41830 100644
--- a/py/ringbuf.h
+++ b/py/ringbuf.h
@@ -29,6 +29,10 @@
#include <stddef.h>
#include <stdint.h>
+#ifdef _MSC_VER
+#include "py/mpconfig.h" // For inline.
+#endif
+
typedef struct _ringbuf_t {
uint8_t *buf;
uint16_t size;