X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fwctype_.h;h=73ce09f4507ac153385dcfb80ca6f53b176466b8;hb=d90f751e2a857949f6eca74876dc0921bffa01d9;hp=3cd3c8750d1692dd02ba83fb6a2ecfe79142d2a8;hpb=0191a7041eba6c7f9190e56dea2430ded092fc68;p=gnulib.git diff --git a/lib/wctype_.h b/lib/wctype_.h index 3cd3c8750..73ce09f45 100644 --- a/lib/wctype_.h +++ b/lib/wctype_.h @@ -27,9 +27,8 @@ */ #ifndef _GL_WCTYPE_H -#define _GL_WCTYPE_H -#if HAVE_WINT_T - 0 +#if @HAVE_WINT_T@ /* Solaris 2.5 has a bug: must be included before . Tru64 with Desktop Toolkit C has a bug: must be included before . @@ -39,20 +38,27 @@ # include # include # include -typedef wint_t __wctype_wint_t; -#else -typedef int __wctype_wint_t; #endif /* Include the original if it exists. BeOS 5 has the functions but no . */ +/* The include_next requires a split double-inclusion guard. */ #if @HAVE_WCTYPE_H@ -# include @ABSOLUTE_WCTYPE_H@ +# @INCLUDE_NEXT@ @NEXT_WCTYPE_H@ +#endif + +#ifndef _GL_WCTYPE_H +#define _GL_WCTYPE_H + +#if @HAVE_WINT_T@ +typedef wint_t __wctype_wint_t; +#else +typedef int __wctype_wint_t; #endif /* FreeBSD 4.4 to 4.11 has but lacks the functions. Assume all 12 functions are implemented the same way, or not at all. */ -#if ! HAVE_ISWCNTRL +#if ! @HAVE_ISWCNTRL@ /* IRIX 5.3 has macros but no functions, its isw* macros refer to an undefined variable _ctmp_ and to macros like _P, and they @@ -152,3 +158,4 @@ iswxdigit (__wctype_wint_t wc) # endif /* ! HAVE_ISWCNTRL */ #endif /* _GL_WCTYPE_H */ +#endif /* _GL_WCTYPE_H */