LVGL remove compilation warning

This commit is contained in:
Stephan Hadinger 2021-06-02 23:04:44 +02:00
parent 89d790de5c
commit 3f07132e0f
2 changed files with 5 additions and 4 deletions

View File

@ -140,10 +140,10 @@ extern void *lvbe_malloc(size_t size);
extern void *lvbe_realloc(void *ptr, size_t size);
extern void *lvbe_calloc(size_t num, size_t size);
#define ft_scalloc berry_calloc
#define ft_sfree free
#define ft_smalloc berry_malloc
#define ft_srealloc berry_realloc
#define ft_scalloc lvbe_calloc
#define ft_sfree lvbe_free
#define ft_smalloc lvbe_malloc
#define ft_srealloc lvbe_realloc
/**************************************************************************

View File

@ -317,6 +317,7 @@ extern "C" {
*/
void *lvbe_malloc(uint32_t size);
void *lvbe_realloc(void *ptr, size_t size);
void *lvbe_calloc(size_t num, size_t size);
#ifdef USE_BERRY_PSRAM
void *lvbe_malloc(uint32_t size) {
return special_malloc(size);