From: Bruno Haible Date: Tue, 24 Jul 2001 12:56:00 +0000 (+0000) Subject: Portability fix for SCO 3.2.5. X-Git-Tag: v0.10.39~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0edb5c290fdb90f8968191005a77e55853bd8c97;p=thirdparty%2Fgettext.git Portability fix for SCO 3.2.5. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index bd596e7d6..2a06d4730 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,8 +1,3 @@ -2001-06-24 Bruno Haible - - * config.charset: Change canonical name of BIG5HKSCS to BIG5-HKSCS. - Change canonical name of SJIS to SHIFT_JIS. - 2001-06-25 Bruno Haible * mbswidth.c (mbsinit): Define to 1 if not defined. For SCO 3.2v5.0.2. diff --git a/lib/mbswidth.c b/lib/mbswidth.c index 7c1c8c226..69a801cea 100644 --- a/lib/mbswidth.c +++ b/lib/mbswidth.c @@ -34,7 +34,7 @@ # include #endif -/* Get iswprint(). */ +/* Get iswprint(), iswcntrl(). */ #if HAVE_WCTYPE_H # include #endif @@ -45,6 +45,12 @@ # define iswcntrl(wc) 0 #endif +#ifndef mbsinit +# if !HAVE_MBSINIT +# define mbsinit(ps) 1 +# endif +#endif + #ifndef HAVE_DECL_WCWIDTH "this configure-time declaration test was not run" #endif