not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
* m4/wctype.m4 (gl_WCTYPE_H): Likewise.
Problems reported by Georg Schwarz for IRIX 5.3.
2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
+ * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
+ not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
+ * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
+ Problems reported by Georg Schwarz for IRIX 5.3.
+
* gnulib-tool (autoconf_minversion): Take the maximum version number
found, not the minimum. Problem reported by James Youngman.
# include @ABSOLUTE_WCTYPE_H@
#endif
-/* IRIX 5.3 has a bug: its isw* macros reference an undefined variable
- _ctmp_. */
+/* IRIX 5.3 has bugs: its isw* macros refer to an undefined variable
+ _ctmp_ and to <ctype.h> macros like _P. */
#if @HAVE_WCTYPE_CTMP_BUG@
-static wint_t _ctmp_;
+# include <ctype.h>
+wchar_t _ctmp_;
#endif
/* FreeBSD 4.4 to 4.11 has <wctype.h> but lacks the functions.
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <wctype.h>
- static wint_t _ctmp_;]],
+ #include <ctype.h>
+ wchar_t _ctmp_;]],
[[return iswprint (0);]])],
[gl_cv_wctype_ctmp_bug=yes])])])
case $gl_cv_wctype_ctmp_bug,$ac_cv_func_iswcntrl in #(