]> git.deb.at Git - pkg/abook.git/blobdiff - mbswidth.c
Upload 0.6.1-2 to unstable
[pkg/abook.git] / mbswidth.c
index a38d03ecce0b1d75e37cd06c3a2602ad5c241b18..21622057c860ced19c3ba4d6765be2eb3a59e2b7 100644 (file)
 # include <config.h>
 #endif
 
-#ifdef HANDLE_MULTIBYTE /* for abook */
-
 /* Specification.  */
 #include "mbswidth.h"
 
+#ifdef HANDLE_MULTIBYTE /* for abook */
+
 /* Get MB_CUR_MAX.  */
 #include <stdlib.h>
 
@@ -326,4 +326,13 @@ mbsnbytes (const char *string, size_t nbytes, int maxwidth, int flags)
   return maxwidth;
 }
 
+#else /* HANDLE_MULTIBYTE */
+
+#include <string.h>
+int
+mbswidth (const char *string, int flags)
+{
+  return strlen(string);
+}
 #endif /* HANDLE_MULTIBYTE */
+