summaryrefslogtreecommitdiff
path: root/gnulib/m4/stdint.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/m4/stdint.m4')
-rw-r--r--gnulib/m4/stdint.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/gnulib/m4/stdint.m4 b/gnulib/m4/stdint.m4
index c75e9572..092161c9 100644
--- a/gnulib/m4/stdint.m4
+++ b/gnulib/m4/stdint.m4
@@ -466,6 +466,14 @@ AC_DEFUN([gl_STDINT_TYPE_PROPERTIES],
fi
gl_INTEGER_TYPE_SUFFIX([sig_atomic_t wchar_t wint_t],
[gl_STDINT_INCLUDES])
+
+ dnl If wint_t is smaller than 'int', it cannot satisfy the ISO C 99
+ dnl requirement that wint_t is "unchanged by default argument promotions".
+ dnl In this case gnulib's <wchar.h> and <wctype.h> override wint_t.
+ dnl Set the variable BITSIZEOF_WINT_T accordingly.
+ if test $BITSIZEOF_WINT_T -lt 32; then
+ BITSIZEOF_WINT_T=32
+ fi
])
dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in.