1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

temprarly remove _lv_mem_buf from GC roots to fix build error

This commit is contained in:
Gabor Kiss-Vamosi 2019-12-26 03:37:13 +01:00
parent 68984828c3
commit de12286304
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,9 @@
/**********************
* STATIC VARIABLES
**********************/
lv_mem_buf_t _lv_mem_buf[LV_MEM_BUF_MAX_NUM];
#if(!defined(LV_ENABLE_GC)) || LV_ENABLE_GC == 0
LV_ROOTS
#endif /* LV_ENABLE_GC */

View File

@ -24,6 +24,7 @@ extern "C" {
* DEFINES
*********************/
extern lv_mem_buf_t _lv_mem_buf[LV_MEM_BUF_MAX_NUM];
#define LV_ITERATE_ROOTS(f) \
f(lv_ll_t, _lv_task_ll) /*Linked list to store the lv_tasks*/ \
@ -36,7 +37,6 @@ extern "C" {
f(lv_ll_t, _lv_img_defoder_ll) \
f(lv_img_cache_entry_t*, _lv_img_cache_array) \
f(void*, _lv_task_act) \
f(lv_mem_buf_t, _lv_mem_buf[LV_MEM_BUF_MAX_NUM]) \
#define LV_DEFINE_ROOT(root_type, root_name) root_type root_name;
#define LV_ROOTS LV_ITERATE_ROOTS(LV_DEFINE_ROOT)