From 539ee0989eca9a85371cb629e44e177776da7136 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 15 Apr 2020 11:59:06 +0200 Subject: [PATCH] locale-util: export emoji_enable() for other code to use --- src/basic/locale-util.c | 2 +- src/basic/locale-util.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/basic/locale-util.c b/src/basic/locale-util.c index c367c03a4af..e4ce289c519 100644 --- a/src/basic/locale-util.c +++ b/src/basic/locale-util.c @@ -305,7 +305,7 @@ out: return (bool) cached_answer; } -static bool emoji_enabled(void) { +bool emoji_enabled(void) { static int cached_emoji_enabled = -1; if (cached_emoji_enabled < 0) { diff --git a/src/basic/locale-util.h b/src/basic/locale-util.h index 9c85928e165..7d77fa2bdae 100644 --- a/src/basic/locale-util.h +++ b/src/basic/locale-util.h @@ -68,6 +68,8 @@ typedef enum { const char *special_glyph(SpecialGlyph code) _const_; +bool emoji_enabled(void); + const char* locale_variable_to_string(LocaleVariable i) _const_; LocaleVariable locale_variable_from_string(const char *s) _pure_; -- 2.47.3