fix(grid,flex): fix compile errors when grid or flex is disabled (#5289)

This commit is contained in:
Gabor Kiss-Vamosi
2024-01-12 03:41:14 +01:00
committed by GitHub
parent 236a2a2672
commit 8df95aaf4b
16 changed files with 180 additions and 63 deletions

View File

@@ -15,6 +15,16 @@ extern "C" {
*********************/
#include "../lv_demos.h"
#if LV_USE_DEMO_MULTILANG
#if LV_USE_GRID == 0
#error "LV_USE_GRID needs to be enabled"
#endif
#if LV_USE_FLEX == 0
#error "LV_USE_FLEX needs to be enabled"
#endif
/*********************
* DEFINES
*********************/
@@ -32,6 +42,8 @@ void lv_demo_multilang(void);
* MACROS
**********************/
#endif /*LV_USE_DEMO_MULTILANG*/
#ifdef __cplusplus
} /* extern "C" */
#endif