From 1982cd6d68d03371a7acbf0b6ba142b2909810eb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 24 Dec 2006 07:55:08 +0000 Subject: Fix bug reported by Bruno Haible in where quotearg.c didn't compile on Mac OS X 10.2 because it lacks and wint_t. * lib/wctype_.h (__wctype_wint_t): New type. Include , , only if HAVE_WINT_T. (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph): (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit): Arg is now of type __wctype_wint_t, not wint_t. * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and substitute HAVE_WINT_T. * modules/wctype (Files): Add m4/wint_t.m4. (wctype.h): Substitute HAVE_WINT_T. --- m4/wctype.m4 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'm4/wctype.m4') diff --git a/m4/wctype.m4 b/m4/wctype.m4 index 357c7a5f98..c24e75f269 100644 --- a/m4/wctype.m4 +++ b/m4/wctype.m4 @@ -13,6 +13,9 @@ AC_DEFUN([gl_WCTYPE_H], AC_CHECK_HEADERS_ONCE([wctype.h]) AC_REQUIRE([AC_C_INLINE]) + AC_REQUIRE([gt_TYPE_WINT_T]) + AC_SUBST([HAVE_WINT_T]) + if test $ac_cv_header_wctype_h = yes; then gl_ABSOLUTE_HEADER([wctype.h]) ABSOLUTE_WCTYPE_H=\"$gl_cv_absolute_wctype_h\" -- cgit v1.2.1