diff --git a/demos/ebike/translations/lv_i18n.c b/demos/ebike/translations/lv_i18n.c index fc274947b..768b37c76 100644 --- a/demos/ebike/translations/lv_i18n.c +++ b/demos/ebike/translations/lv_i18n.c @@ -1,6 +1,7 @@ #include "./lv_i18n.h" #include "../../../src/stdlib/lv_string.h" +#if LV_USE_DEMO_EBIKE /** * Define plural operands @@ -298,3 +299,5 @@ const char * lv_i18n_get_current_locale(void) if(!current_lang) return NULL; return current_lang->locale_name; } + +#endif /*#if LV_USE_DEMO_EBIKE*/ diff --git a/demos/ebike/translations/lv_i18n.h b/demos/ebike/translations/lv_i18n.h index c40c4967d..eea79a29c 100644 --- a/demos/ebike/translations/lv_i18n.h +++ b/demos/ebike/translations/lv_i18n.h @@ -6,6 +6,7 @@ extern "C" { #endif #include "../../../src/lv_conf_internal.h" +#if LV_USE_DEMO_EBIKE #include LV_STDINT_INCLUDE @@ -78,6 +79,7 @@ void __lv_i18n_reset(void); #define _(text) lv_i18n_get_text(text) #define _p(text, num) lv_i18n_get_text_plural(text, num) +#endif /*LV_USE_DEMO_EBIKE*/ #ifdef __cplusplus } /* extern "C" */