Skip to content

Commit

Permalink
py/ringbuf: Fix compilation with msvc.
Browse files Browse the repository at this point in the history
Older versions do not have "inline" so fetch the definition from
mpconfigport.h.
  • Loading branch information
stinos authored and dpgeorge committed May 27, 2020
1 parent 81db22f commit 97ccde0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/ringbuf.h
Expand Up @@ -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;
Expand Down

0 comments on commit 97ccde0

Please sign in to comment.