summaryrefslogtreecommitdiff
path: root/lib/glm4/stdint.m4
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-09-14 19:21:39 +0200
committerSimon Josefsson <simon@josefsson.org>2011-10-25 13:22:18 +0200
commit45f06971a1803d7c84ffcaf6e53d47354266b3e1 (patch)
treef7740838f8a095663870b468e70a36a48dd40a28 /lib/glm4/stdint.m4
parent58cda71590f48db415e0005f2513da53944063d1 (diff)
downloadlibtasn1-45f06971a1803d7c84ffcaf6e53d47354266b3e1.tar.gz
Update gnulib files.
Diffstat (limited to 'lib/glm4/stdint.m4')
-rw-r--r--lib/glm4/stdint.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/glm4/stdint.m4 b/lib/glm4/stdint.m4
index c75e957..092161c 100644
--- a/lib/glm4/stdint.m4
+++ b/lib/glm4/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.