From 3444cf3166349a59f4dc586c658bbdc2b8660eaf Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Fri, 12 May 2000 13:41:34 +0000 Subject: [PATCH] Make things compile. ;-) --- mbyte.c | 2 ++ wcwidth.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mbyte.c b/mbyte.c index c7e7f156d..2d99389ef 100644 --- a/mbyte.c +++ b/mbyte.c @@ -5,6 +5,8 @@ #include +#include + #ifndef EILSEQ #define EILSEQ EINVAL #endif diff --git a/wcwidth.c b/wcwidth.c index 6b0933bbe..dbaa9611c 100644 --- a/wcwidth.c +++ b/wcwidth.c @@ -13,6 +13,8 @@ #include "mutt.h" #include "mbyte.h" +#include + #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; } -- 2.40.0