]> granicus.if.org Git - neomutt/commitdiff
Make things compile. ;-)
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 12 May 2000 13:41:34 +0000 (13:41 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 12 May 2000 13:41:34 +0000 (13:41 +0000)
mbyte.c
wcwidth.c

diff --git a/mbyte.c b/mbyte.c
index c7e7f156de89dd7c91a0a9a61cc715978556877b..2d99389ef61e349b61a4528b638ff0c48aa9d22f 100644 (file)
--- a/mbyte.c
+++ b/mbyte.c
@@ -5,6 +5,8 @@
 
 #include <errno.h>
 
+#include <ctype.h>
+
 #ifndef EILSEQ
 #define EILSEQ EINVAL
 #endif
index 6b0933bbecbdc1c1328593500011116d78482d8d..dbaa9611c2f54a45dec7b5aec4b507576907876d 100644 (file)
--- a/wcwidth.c
+++ b/wcwidth.c
@@ -13,6 +13,8 @@
 #include "mutt.h"
 #include "mbyte.h"
 
+#include <ctype.h>
+
 #ifndef HAVE_WC_FUNCS
 
 /* These functions define the column width of an ISO 10646 character
@@ -88,7 +90,7 @@ int wcwidth(wchar_t ucs)
   /* non-UCS case */
   if (!Charset_is_utf8) {
     if (0 <= ucs && ucs < 256)
-      return IsPrint(wc) ? 1 : -1;
+      return IsPrint(ucs) ? 1 : -1;
     else
       return -1;
   }