py/ringbuf: Fix compilation with msvc.
Older versions do not have "inline" so fetch the definition from mpconfigport.h.
This commit is contained in:
parent
81db22f693
commit
97ccde0c43
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue