1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

[intl] width.c compilable only with CONFIG_UTF8

This commit is contained in:
Witold Filipczyk 2020-08-09 19:46:50 +02:00
parent 8b8f57ed75
commit 3e85e37909
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,8 @@ include $(top_builddir)/Makefile.config
SUBDIRS-$(CONFIG_NLS) += gettext SUBDIRS-$(CONFIG_NLS) += gettext
OBJS = charsets.o width.o OBJS = charsets.o
OBJS-$(CONFIG_UTF8) += width.o
include $(top_srcdir)/Makefile.lib include $(top_srcdir)/Makefile.lib

View File

@ -88,7 +88,6 @@ struct codepage_desc {
* functions can be called from other translation units. */ * functions can be called from other translation units. */
NONSTATIC_INLINE unsigned char *encode_utf8(unicode_val_T u); NONSTATIC_INLINE unsigned char *encode_utf8(unicode_val_T u);
NONSTATIC_INLINE int utf8charlen(const unsigned char *p); 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, NONSTATIC_INLINE unicode_val_T utf8_to_unicode(unsigned char **string,
const unsigned char *end); const unsigned char *end);