diff options
Diffstat (limited to 'm4/stdint.m4')
-rw-r--r-- | m4/stdint.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/stdint.m4 b/m4/stdint.m4 index c75e95722a5..092161c9968 100644 --- a/m4/stdint.m4 +++ b/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. |