py/ringbuf: Fix compilation with msvc.

Older versions do not have "inline" so fetch the definition from
mpconfigport.h.
This commit is contained in:
stijn 2020-05-17 10:57:51 +02:00 committed by Damien George
parent 81db22f693
commit 97ccde0c43
1 changed files with 4 additions and 0 deletions

View File

@ -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;