HAL_ChibiOS: deprecate realloc for ChibiOS build, so as to return error when used

This commit is contained in:
bugobliterator 2020-03-17 14:18:23 +05:30 committed by Randy Mackay
parent cf0c6d3247
commit 9073f0ffb4
1 changed files with 2 additions and 1 deletions

View File

@ -44,9 +44,10 @@ int printf(const char *fmt, ...);
void *malloc(size_t size);
void *calloc(size_t nmemb, size_t size);
void free(void *ptr);
void *realloc(void* ptr, size_t size) __attribute__((deprecated));
extern int (*vprintf_console_hook)(const char *fmt, va_list arg);
#define L_tmpnam 32
#ifdef __cplusplus