From 814947895957c32375c6a9a069e1bcadc05c95c2 Mon Sep 17 00:00:00 2001 From: destroyedlolo Date: Sun, 4 Oct 2020 14:22:12 +0200 Subject: [PATCH] Avoid prototyping warning ps_malloc() is not defined and create a compilation warning. Worst, it's preventing compilation if the compiler is set in strict mode. --- src/lv_conf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lv_conf.h b/src/lv_conf.h index 67c1466..3f850e2 100644 --- a/src/lv_conf.h +++ b/src/lv_conf.h @@ -94,6 +94,12 @@ typedef int16_t lv_coord_t; #else /*LV_MEM_CUSTOM*/ # define LV_MEM_CUSTOM_INCLUDE /*Header for the dynamic memory function*/ #if defined(BOARD_HAS_PSRAM) + /* Until Espressif corrects their own hearder */ +# include +# include + + /* declare ps_malloc()'s prototype */ +# include # define LV_MEM_CUSTOM_ALLOC ps_malloc /*Wrapper to malloc*/ #else # define LV_MEM_CUSTOM_ALLOC malloc /*Wrapper to malloc*/