mirror of
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
synced 2026-02-20 01:21:25 +01:00
Merge pull request #85 from destroyedlolo/patch-1
Avoid prototyping warning
This commit is contained in:
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user