X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fwctype.in.h;h=8016203060c2c7b24ae97eb24422663f65c3cbc9;hb=2c35d5c11d2359c7ebb06a3388a544cbe2f9c7f5;hp=06930142465e861589ee960777c2fd441e8c352f;hpb=e8e40a1a575dbd0ec461e9b20cb96374b1eeb651;p=gnulib.git diff --git a/lib/wctype.in.h b/lib/wctype.in.h index 069301424..801620306 100644 --- a/lib/wctype.in.h +++ b/lib/wctype.in.h @@ -69,7 +69,8 @@ /* FreeBSD 4.4 to 4.11 has but lacks the functions. Linux libc5 has and the functions but they are broken. - Assume all 12 functions are implemented the same way, or not at all. */ + Assume all 11 functions (all isw* except iswblank) are implemented the + same way, or not at all. */ #if ! @HAVE_ISWCNTRL@ || @REPLACE_ISWCNTRL@ /* IRIX 5.3 has macros but no functions, its isw* macros refer to an @@ -271,7 +272,16 @@ towupper return (wc >= 'a' && wc <= 'z' ? wc - 'a' + 'A' : wc); } -#endif /* ! HAVE_ISWCNTRL || REPLACE_ISWCNTRL */ +#elif ! @HAVE_ISWBLANK@ +/* Only the iswblank function is missing. */ + +static inline int +iswblank (wint_t wc) +{ + return wc == ' ' || wc == '\t'; +} + +#endif #if defined __MINGW32__