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.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/gl/stdint.in.h b/gl/stdint.in.h
index 53aa34a..5da5f17 100644
--- a/gl/stdint.in.h
+++ b/gl/stdint.in.h
@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2002, 2004-2009 Free Software Foundation, Inc. 1/* Copyright (C) 2001-2002, 2004-2010 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
@@ -23,6 +23,10 @@
23 23
24#ifndef _GL_STDINT_H 24#ifndef _GL_STDINT_H
25 25
26#if __GNUC__ >= 3
27@PRAGMA_SYSTEM_HEADER@
28#endif
29
26/* When including a system file that in turn includes <inttypes.h>, 30/* When including a system file that in turn includes <inttypes.h>,
27 use the system <inttypes.h>, not our substitute. This avoids 31 use the system <inttypes.h>, not our substitute. This avoids
28 problems with (for example) VMS, whose <sys/bitypes.h> includes 32 problems with (for example) VMS, whose <sys/bitypes.h> includes
@@ -49,9 +53,6 @@
49 in <inttypes.h> would reinclude us, skipping our contents because 53 in <inttypes.h> would reinclude us, skipping our contents because
50 _GL_STDINT_H is defined. 54 _GL_STDINT_H is defined.
51 The include_next requires a split double-inclusion guard. */ 55 The include_next requires a split double-inclusion guard. */
52# if __GNUC__ >= 3
53@PRAGMA_SYSTEM_HEADER@
54# endif
55# @INCLUDE_NEXT@ @NEXT_STDINT_H@ 56# @INCLUDE_NEXT@ @NEXT_STDINT_H@
56#endif 57#endif
57 58
@@ -102,8 +103,8 @@
102 ((signed) \ 103 ((signed) \
103 ? ~ _STDINT_MIN (signed, bits, zero) \ 104 ? ~ _STDINT_MIN (signed, bits, zero) \
104 : /* The expression for the unsigned case. The subtraction of (signed) \ 105 : /* The expression for the unsigned case. The subtraction of (signed) \
105 is a nop in the unsigned case and avoids "signed integer overflow" \ 106 is a nop in the unsigned case and avoids "signed integer overflow" \
106 warnings in the signed case. */ \ 107 warnings in the signed case. */ \
107 ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1) 108 ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1)
108 109
109/* 7.18.1.1. Exact-width integer types */ 110/* 7.18.1.1. Exact-width integer types */
@@ -454,10 +455,10 @@ typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) -
454#undef SIG_ATOMIC_MAX 455#undef SIG_ATOMIC_MAX
455#define SIG_ATOMIC_MIN \ 456#define SIG_ATOMIC_MIN \
456 _STDINT_MIN (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ 457 _STDINT_MIN (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \
457 0@SIG_ATOMIC_T_SUFFIX@) 458 0@SIG_ATOMIC_T_SUFFIX@)
458#define SIG_ATOMIC_MAX \ 459#define SIG_ATOMIC_MAX \
459 _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ 460 _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \
460 0@SIG_ATOMIC_T_SUFFIX@) 461 0@SIG_ATOMIC_T_SUFFIX@)
461 462
462 463
463/* size_t limit */ 464/* size_t limit */