Added stdio.h include to pico malloc when debug enabled (#1503)

This commit is contained in:
Mr. Jake 2023-12-14 12:45:25 +01:00 committed by GitHub
parent 8787bc9b4d
commit 21cf892b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);