add some missong LV_USE_... guards

This commit is contained in:
Gabor Kiss-Vamosi
2021-02-16 14:23:18 +01:00
parent c35b645c31
commit 28addaf3ce
5 changed files with 15 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#include "../../lvgl.h"
#if LV_BUILD_EXAMPLES
static void btn_event_cb(lv_obj_t * btn, lv_event_t event)
{
@@ -26,3 +27,5 @@ void lv_example_get_started_1(void)
lv_label_set_text(label, "Button"); /*Set the labels text*/
}
#endif

View File

@@ -8,6 +8,8 @@
*********************/
#include "lv_flex.h"
#if LV_USE_FLEX
/*********************
* DEFINES
*********************/
@@ -446,3 +448,5 @@ static lv_obj_t * get_next_item(lv_obj_t * cont, bool rev, int32_t * item_id)
else return NULL;
}
}
#endif /*LV_USE_FLEX*/

View File

@@ -14,6 +14,7 @@ extern "C" {
* INCLUDES
*********************/
#include "../../../lv_core/lv_obj.h"
#if LV_USE_FLEX
/*********************
* DEFINES
@@ -112,6 +113,8 @@ extern const lv_flex_t lv_flex_even; /**< Place the items evenly in r
* MACROS
**********************/
#endif /*LV_USE_FLEX*/
#ifdef __cplusplus
} /* extern "C" */
#endif

View File

@@ -7,6 +7,7 @@
* INCLUDES
*********************/
#include "lv_grid.h"
#if LV_USE_GRID
/*********************
* DEFINES
@@ -479,3 +480,5 @@ static lv_coord_t grid_place(lv_coord_t cont_size, bool auto_size, uint8_t plac
/*Return the full size of the grid*/
return total_gird_size;
}
#endif /*LV_USE_GRID*/

View File

@@ -18,6 +18,7 @@ extern "C" {
/*********************
* DEFINES
*********************/
#if LV_USE_GRID
/**********************
* TYPEDEFS
@@ -123,6 +124,7 @@ extern const lv_grid_t grid_12;
/**********************
* MACROS
**********************/
#endif /*LV_USE_GRID*/
#ifdef __cplusplus
} /* extern "C" */