X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=misc.c;fp=misc.c;h=90f41aca3b413b024a6091d79823a5e2db047016;hb=b5e88fc2db3b9252d7680f3d6b173bac78538cf3;hp=9a603dbf68a6341692fee646b358bc517f225f7d;hpb=f997c8381e0dbcf45fc396bc94e38538c1272dcf;p=pkg%2Fabook.git diff --git a/misc.c b/misc.c index 9a603db..90f41ac 100644 --- a/misc.c +++ b/misc.c @@ -18,9 +18,7 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif -#ifdef HANDLE_MULTIBYTE -# include -#endif +#include #include "misc.h" #include "xmalloc.h" @@ -274,11 +272,7 @@ int strwidth(const char *s) { assert(s); -#ifdef HANDLE_MULTIBYTE - return (int)mbswidth(s, 0); -#else - return strlen(s); -#endif + return mbswidth(s, 0); } int