Skip to content

Commit

Permalink
Added stdio.h include to pico malloc when debug enabled (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJake222 authored Dec 14, 2023
1 parent 8787bc9 commit 21cf892
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rp2_common/pico_malloc/pico_malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
auto_init_mutex(malloc_mutex);
#endif

#if PICO_DEBUG_MALLOC
#include <stdio.h>
#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);
Expand Down

0 comments on commit 21cf892

Please sign in to comment.