diff --git a/dynmem.c b/dynmem.c index 8fb0464..ef30511 100644 --- a/dynmem.c +++ b/dynmem.c @@ -2,9 +2,9 @@ #include "global_state.h" #include "utils.h" -#if !defined(ETHLIB_MEMORY_POOL_ATTRIBUTES) || (ETHLIB_MEMORY_POOL_ATTRIBUTES == none) +#if !defined(ETHLIB_MEMORY_POOL_ATTRIBUTES) static uint8_t sDynMemPool[ETHLIB_MEMORY_POOL_TOTAL_SIZE]; -#elif +#else static uint8_t sDynMemPool[ETHLIB_MEMORY_POOL_TOTAL_SIZE] __attribute__((ETHLIB_MEMORY_POOL_ATTRIBUTES)); #endif @@ -19,4 +19,4 @@ void * dynmem_alloc_(uint32_t size) { void dynmem_free_(void * ptr) { mp_free(E.mp, ptr); -} \ No newline at end of file +} diff --git a/msg_queue.h b/msg_queue.h index fbeb38c..448db26 100644 --- a/msg_queue.h +++ b/msg_queue.h @@ -1,6 +1,7 @@ #ifndef ETHERLIB_MSG_QUEUE_H #define ETHERLIB_MSG_QUEUE_H +#include #include #include "packet.h"