diff --git a/src/rp2_common/pico_malloc/pico_malloc.c b/src/rp2_common/pico_malloc/pico_malloc.c index 868a455d2..5d09d93f3 100644 --- a/src/rp2_common/pico_malloc/pico_malloc.c +++ b/src/rp2_common/pico_malloc/pico_malloc.c @@ -13,6 +13,10 @@ auto_init_mutex(malloc_mutex); #endif +#if PICO_DEBUG_MALLOC +#include +#endif + extern void *REAL_FUNC(malloc)(size_t size); extern void *REAL_FUNC(calloc)(size_t count, size_t size); extern void *REAL_FUNC(realloc)(void *mem, size_t size);