diff options
author | Bruno Haible <bruno@clisp.org> | 2001-06-25 18:03:59 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2001-06-25 18:03:59 +0000 |
commit | bcc733b2262bee64cee794f79c2fc96f78d4c243 (patch) | |
tree | 2759993791e655b3bbe5fd85d9d27b060dc89d97 /lib/mbswidth.c | |
parent | ba6441f3feea8c3252da16a358a47e9f4e69bafe (diff) | |
download | external_gettext-bcc733b2262bee64cee794f79c2fc96f78d4c243.zip external_gettext-bcc733b2262bee64cee794f79c2fc96f78d4c243.tar.gz external_gettext-bcc733b2262bee64cee794f79c2fc96f78d4c243.tar.bz2 |
Portability fix for SCO 3.2.5.
Diffstat (limited to 'lib/mbswidth.c')
-rw-r--r-- | lib/mbswidth.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/mbswidth.c b/lib/mbswidth.c index 7c1c8c2..69a801c 100644 --- a/lib/mbswidth.c +++ b/lib/mbswidth.c @@ -34,7 +34,7 @@ # include <wchar.h> #endif -/* Get iswprint(). */ +/* Get iswprint(), iswcntrl(). */ #if HAVE_WCTYPE_H # include <wctype.h> #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 |