summaryrefslogtreecommitdiffstats
path: root/gl/m4/stdint.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/stdint.m4')
-rw-r--r--gl/m4/stdint.m413
1 files changed, 7 insertions, 6 deletions
diff --git a/gl/m4/stdint.m4 b/gl/m4/stdint.m4
index 2dea8469..410da153 100644
--- a/gl/m4/stdint.m4
+++ b/gl/m4/stdint.m4
@@ -1,9 +1,10 @@
1# stdint.m4 1# stdint.m4
2# serial 63 2# serial 65
3dnl Copyright (C) 2001-2024 Free Software Foundation, Inc. 3dnl Copyright (C) 2001-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
7 8
8dnl From Paul Eggert and Bruno Haible. 9dnl From Paul Eggert and Bruno Haible.
9dnl Test whether <stdint.h> is supported or must be substituted. 10dnl Test whether <stdint.h> is supported or must be substituted.
@@ -157,7 +158,7 @@ uintmax_t j = UINTMAX_MAX;
157 || defined __clang__) 158 || defined __clang__)
158int k = _Generic (SIZE_MAX, size_t: 0); 159int k = _Generic (SIZE_MAX, size_t: 0);
159#elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \ 160#elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
160 || (0x5110 <= __SUNPRO_C && !__STDC__)) 161 || (0x5110 <= __SUNPRO_C && !__STDC__) || 1939 <= _MSC_VER)
161extern size_t k; 162extern size_t k;
162extern __typeof__ (SIZE_MAX) k; 163extern __typeof__ (SIZE_MAX) k;
163#endif 164#endif
@@ -390,9 +391,9 @@ AC_DEFUN([gl_STDINT_BITSIZEOF],
390 ]) 391 ])
391 eval result=\$gl_cv_bitsizeof_${gltype} 392 eval result=\$gl_cv_bitsizeof_${gltype}
392 if test $result = unknown; then 393 if test $result = unknown; then
393 dnl Use a nonempty default, because some compilers, such as IRIX 5 cc, 394 dnl Use a nonempty default, because some old compilers do a syntax check
394 dnl do a syntax check even on unused #if conditions and give an error 395 dnl even on unused #if conditions and give an error on valid C code like
395 dnl on valid C code like this: 396 dnl this:
396 dnl #if 0 397 dnl #if 0
397 dnl # if > 32 398 dnl # if > 32
398 dnl # endif 399 dnl # endif