From 9eb0ed150557bfc871438ff24c640c2434012c81 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 18 Nov 2024 12:21:17 +0100 Subject: [PATCH] fix(ebike): add guards to the ebike demo translations (#7319) --- demos/ebike/translations/lv_i18n.c | 3 +++ demos/ebike/translations/lv_i18n.h | 2 ++ 2 files changed, 5 insertions(+) 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" */