Merge pull request #85 from destroyedlolo/patch-1

Avoid prototyping warning
This commit is contained in:
lewis he
2020-10-05 12:56:15 +08:00
committed by GitHub

View File

@@ -94,6 +94,12 @@ typedef int16_t lv_coord_t;
#else /*LV_MEM_CUSTOM*/
# define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/
#if defined(BOARD_HAS_PSRAM)
/* Until Espressif corrects their own hearder */
# include <stddef.h>
# include <stdbool.h>
/* declare ps_malloc()'s prototype */
# include <esp32-hal-psram.h>
# define LV_MEM_CUSTOM_ALLOC ps_malloc /*Wrapper to malloc*/
#else
# define LV_MEM_CUSTOM_ALLOC malloc /*Wrapper to malloc*/