From 3e85e37909f2698442f843ecfdfd626c543e1076 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 9 Aug 2020 19:46:50 +0200 Subject: [PATCH] [intl] width.c compilable only with CONFIG_UTF8 --- src/intl/Makefile | 4 +++- src/intl/charsets.c | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intl/Makefile b/src/intl/Makefile index 444e49a85..182d730ab 100644 --- a/src/intl/Makefile +++ b/src/intl/Makefile @@ -3,6 +3,8 @@ include $(top_builddir)/Makefile.config SUBDIRS-$(CONFIG_NLS) += gettext -OBJS = charsets.o width.o +OBJS = charsets.o + +OBJS-$(CONFIG_UTF8) += width.o include $(top_srcdir)/Makefile.lib diff --git a/src/intl/charsets.c b/src/intl/charsets.c index b8db4621b..ecbc7b270 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -88,7 +88,6 @@ struct codepage_desc { * functions can be called from other translation units. */ NONSTATIC_INLINE unsigned char *encode_utf8(unicode_val_T u); NONSTATIC_INLINE int utf8charlen(const unsigned char *p); -NONSTATIC_INLINE int unicode_to_cell(unicode_val_T c); NONSTATIC_INLINE unicode_val_T utf8_to_unicode(unsigned char **string, const unsigned char *end);