-# serial 7
+# serial 9
# From Paul Eggert.
# (at least glibc-2.1.3) because the "_XOPEN_SOURCE 500" definition elicits
# a syntax error in wchar.h due to the use of undefined __int32_t.
-AC_DEFUN(AC_MBSTATE_T,
+AC_DEFUN([AC_MBSTATE_T],
[
AC_CHECK_HEADERS(stdlib.h)
ac_cv_type_mbstate_t=yes,
ac_cv_type_mbstate_t=no)])
if test $ac_cv_type_mbstate_t = no; then
- AC_DEFINE(mbstate_t, char,
+ AC_DEFINE(mbstate_t, int,
[Define to a type if <wchar.h> does not define.])
fi])