diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-12-24 07:55:08 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-12-24 07:55:08 +0000 |
commit | 1982cd6d68d03371a7acbf0b6ba142b2909810eb (patch) | |
tree | 6641d29e022cc1292181a1dd74d5d5ed467afc49 /m4/wctype.m4 | |
parent | 5491309db38697aec7b44483fce2f1e75838e2c5 (diff) | |
download | gnulib-1982cd6d68d03371a7acbf0b6ba142b2909810eb.tar.gz |
Fix bug reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
where quotearg.c didn't compile on Mac OS X 10.2 because it
lacks <wchar.h> and wint_t.
* lib/wctype_.h (__wctype_wint_t): New type.
Include <stdio.h>, <time.h>, <wchar.h> 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.
Diffstat (limited to 'm4/wctype.m4')
-rw-r--r-- | m4/wctype.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
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\" |