add some missong LV_USE_... guards
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../../lvgl.h"
|
||||||
|
#if LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static void btn_event_cb(lv_obj_t * btn, lv_event_t event)
|
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*/
|
lv_label_set_text(label, "Button"); /*Set the labels text*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
*********************/
|
*********************/
|
||||||
#include "lv_flex.h"
|
#include "lv_flex.h"
|
||||||
|
|
||||||
|
#if LV_USE_FLEX
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* 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;
|
else return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /*LV_USE_FLEX*/
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ extern "C" {
|
|||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
#include "../../../lv_core/lv_obj.h"
|
#include "../../../lv_core/lv_obj.h"
|
||||||
|
#if LV_USE_FLEX
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
@@ -112,6 +113,8 @@ extern const lv_flex_t lv_flex_even; /**< Place the items evenly in r
|
|||||||
* MACROS
|
* MACROS
|
||||||
**********************/
|
**********************/
|
||||||
|
|
||||||
|
#endif /*LV_USE_FLEX*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
#include "lv_grid.h"
|
#include "lv_grid.h"
|
||||||
|
#if LV_USE_GRID
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* 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 the full size of the grid*/
|
||||||
return total_gird_size;
|
return total_gird_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /*LV_USE_GRID*/
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ extern "C" {
|
|||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
*********************/
|
*********************/
|
||||||
|
#if LV_USE_GRID
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* TYPEDEFS
|
* TYPEDEFS
|
||||||
@@ -123,6 +124,7 @@ extern const lv_grid_t grid_12;
|
|||||||
/**********************
|
/**********************
|
||||||
* MACROS
|
* MACROS
|
||||||
**********************/
|
**********************/
|
||||||
|
#endif /*LV_USE_GRID*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
|||||||
Reference in New Issue
Block a user