summaryrefslogtreecommitdiffstats
path: root/gl/stdint.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/stdint.in.h')
-rw-r--r--gl/stdint.in.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/gl/stdint.in.h b/gl/stdint.in.h
index fea7483b..ca566b30 100644
--- a/gl/stdint.in.h
+++ b/gl/stdint.in.h
@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2002, 2004-2024 Free Software Foundation, Inc. 1/* Copyright (C) 2001-2002, 2004-2025 Free Software Foundation, Inc.
2 Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. 2 Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood.
3 This file is part of gnulib. 3 This file is part of gnulib.
4 4
@@ -80,7 +80,7 @@
80#define _@GUARD_PREFIX@_STDINT_H 80#define _@GUARD_PREFIX@_STDINT_H
81 81
82/* Get SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, INT_MIN, INT_MAX, 82/* Get SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, INT_MIN, INT_MAX,
83 LONG_MIN, LONG_MAX, ULONG_MAX, _GL_INTEGER_WIDTH. */ 83 LONG_MIN, LONG_MAX, ULONG_MAX, CHAR_BIT, _GL_INTEGER_WIDTH. */
84#include <limits.h> 84#include <limits.h>
85 85
86/* Override WINT_MIN and WINT_MAX if gnulib's <wchar.h> or <wctype.h> overrides 86/* Override WINT_MIN and WINT_MAX if gnulib's <wchar.h> or <wctype.h> overrides
@@ -189,6 +189,10 @@ typedef __int64 gl_int64_t;
189# define int64_t gl_int64_t 189# define int64_t gl_int64_t
190# define GL_INT64_T 190# define GL_INT64_T
191# else 191# else
192/* Verify that 'long long' has exactly 64 bits. */
193typedef _gl_verify_int64_bits[
194 _STDINT_MAX (1, sizeof (long long) * CHAR_BIT, 0ll) >> 31 >> 31 == 1
195 ? 1 : -1];
192# undef int64_t 196# undef int64_t
193typedef long long int gl_int64_t; 197typedef long long int gl_int64_t;
194# define int64_t gl_int64_t 198# define int64_t gl_int64_t
@@ -210,6 +214,11 @@ typedef unsigned __int64 gl_uint64_t;
210# define uint64_t gl_uint64_t 214# define uint64_t gl_uint64_t
211# define GL_UINT64_T 215# define GL_UINT64_T
212# else 216# else
217/* Verify that 'unsigned long long' has exactly 64 bits. */
218typedef _gl_verify_uint64_bits[
219 _STDINT_MAX (0, sizeof (unsigned long long) * CHAR_BIT, 0ull)
220 >> 31 >> 31 >> 1 == 1
221 ? 1 : -1];
213# undef uint64_t 222# undef uint64_t
214typedef unsigned long long int gl_uint64_t; 223typedef unsigned long long int gl_uint64_t;
215# define uint64_t gl_uint64_t 224# define uint64_t gl_uint64_t