]> git.deb.at Git - pkg/abook.git/blobdiff - misc.c
- mbswidth change to avoid empty translation unit warnings
[pkg/abook.git] / misc.c
diff --git a/misc.c b/misc.c
index 9a603dbf68a6341692fee646b358bc517f225f7d..90f41aca3b413b024a6091d79823a5e2db047016 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -18,9 +18,7 @@
 #ifdef HAVE_CONFIG_H
 #      include "config.h"
 #endif
-#ifdef HANDLE_MULTIBYTE
-#      include <mbswidth.h>
-#endif
+#include <mbswidth.h>
 #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