Mercurial > ~mikael > mcabber > hg
diff mcabber/src/utf8.h @ 1571:481b60da99c9
Workaround for missing iswblank() on Solaris 8 & 9 (Sebastian Kayser)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 11 Apr 2009 12:20:12 +0200 |
parents | 0f7e0346d9cb |
children |
line wrap: on
line diff
--- a/mcabber/src/utf8.h Sat Apr 11 12:05:27 2009 +0200 +++ b/mcabber/src/utf8.h Sat Apr 11 12:20:12 2009 +0200 @@ -17,6 +17,17 @@ #ifdef HAVE_WCTYPE_H # include <wctype.h> + +/* The following bit is a hack for Solaris 8&9 systems that don't have + * iswblank(). + * For now i made sure it comes after wctype.h so it doesn't create + * problems (wctype.h has calls to iswblank() before wctype() is declared). + * (Sebastian Kayser) + */ +# ifndef HAVE_ISWBLANK +# define iswblank(wc) iswctype(wc, wctype("blank")) +# endif + #else # define iswblank(c) (c == ' ') # define iswalnum(c) isalnum(c)