From 97ccde0c431674113f56b4c9d421b2bc1acb1b56 Mon Sep 17 00:00:00 2001 From: stijn Date: Sun, 17 May 2020 10:57:51 +0200 Subject: [PATCH] py/ringbuf: Fix compilation with msvc. Older versions do not have "inline" so fetch the definition from mpconfigport.h. --- py/ringbuf.h | 4 ++++ 1 file changed, 4 insertions(+) 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 #include +#ifdef _MSC_VER +#include "py/mpconfig.h" // For inline. +#endif + typedef struct _ringbuf_t { uint8_t *buf; uint16_t size;