X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fwctype.h;h=3ac24f13841a762c1ee948cffed32c19841162e3;hb=0f2315b4af1c58cbfb7c7f9da69b495cd146cc18;hp=5640eddbe33cd31baaf69e1658e0823899262d65;hpb=9448b0513e2eec020fbca9c10412b83df5027a16;p=musl diff --git a/include/wctype.h b/include/wctype.h index 5640eddb..3ac24f13 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -11,7 +11,7 @@ extern "C" { #define __NEED_wctype_t #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ - || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define __NEED_locale_t #endif @@ -20,7 +20,7 @@ extern "C" { typedef const int * wctrans_t; #undef WEOF -#define WEOF (-1) +#define WEOF 0xffffffffU #undef iswdigit @@ -47,7 +47,7 @@ wctype_t wctype(const char *); #define iswdigit(a) (((unsigned)(a)-L'0') < 10) #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ - || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) int iswalnum_l(wint_t, locale_t); int iswalpha_l(wint_t, locale_t);