diff --git a/fifo_buffer.c b/fifo_buffer.c index 657697a53b..a4ae0a29f1 100644 --- a/fifo_buffer.c +++ b/fifo_buffer.c @@ -14,15 +14,6 @@ */ #include "fifo_buffer.h" -#include - -struct fifo_buffer -{ - uint8_t *buffer; - size_t bufsize; - size_t first; - size_t end; -}; fifo_buffer_t *fifo_new(size_t size) { diff --git a/fifo_buffer.h b/fifo_buffer.h index ff61be66ad..54ef8ba4fa 100644 --- a/fifo_buffer.h +++ b/fifo_buffer.h @@ -17,13 +17,21 @@ #define __FIFO_BUFFER_H #include -#include +#include #include #ifdef __cplusplus extern "C" { #endif +struct fifo_buffer +{ + uint8_t *buffer; + size_t bufsize; + size_t first; + size_t end; +}; + typedef struct fifo_buffer fifo_buffer_t; fifo_buffer_t *fifo_new(size_t size);