summaryrefslogtreecommitdiffstatshomepage
path: root/py/ringbuf.h
diff options
context:
space:
mode:
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 4d316d961b..293e418306 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;