aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2009-07-04 21:31:17 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2009-07-04 21:31:17 +0000
commit94ab808c5d7f7510f8a173a2ce8f36b6026197f9 (patch)
tree3232d451dc2d3f4d42af5a16ddfa46fc2232a519 /fixincludes/tests
parent277780589296f8799cd4b048b46d12d0b2310f9c (diff)
downloadgcc-94ab808c5d7f7510f8a173a2ce8f36b6026197f9.zip
gcc-94ab808c5d7f7510f8a173a2ce8f36b6026197f9.tar.gz
gcc-94ab808c5d7f7510f8a173a2ce8f36b6026197f9.tar.bz2
inclhack.def (darwin_stdint_5, [...]): New fixes.
* inclhack.def (darwin_stdint_5, darwin_stdint_6, darwin_stdint_7): New fixes. * fixincl.x: Regenerate. * tests/base/stdint.h: Adjust test for new fixes. From-SVN: r149242
Diffstat (limited to 'fixincludes/tests')
-rw-r--r--fixincludes/tests/base/stdint.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/fixincludes/tests/base/stdint.h b/fixincludes/tests/base/stdint.h
index 35039db..77e77fa 100644
--- a/fixincludes/tests/base/stdint.h
+++ b/fixincludes/tests/base/stdint.h
@@ -44,6 +44,41 @@
#endif /* DARWIN_STDINT_4_CHECK */
+#if defined( DARWIN_STDINT_5_CHECK )
+#if __WORDSIZE == 64
+#define INTMAX_MIN (-9223372036854775807L - 1)
+#define INTMAX_MAX 9223372036854775807L
+#define UINTMAX_MAX 18446744073709551615UL
+#else
+#define INTMAX_MIN (-9223372036854775807LL - 1)
+#define INTMAX_MAX 9223372036854775807LL
+#define UINTMAX_MAX 18446744073709551615ULL
+#endif
+#endif /* DARWIN_STDINT_5_CHECK */
+
+
+#if defined( DARWIN_STDINT_6_CHECK )
+#if __WORDSIZE == 64
+#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
+#define PTRDIFF_MAX __PTRDIFF_MAX__
+#else
+#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
+#define PTRDIFF_MAX __PTRDIFF_MAX__
+#endif
+#endif /* DARWIN_STDINT_6_CHECK */
+
+
+#if defined( DARWIN_STDINT_7_CHECK )
+#if __WORDSIZE == 64
+#define INTMAX_C(v) (v ## L)
+#define UINTMAX_C(v) (v ## UL)
+#else
+#define INTMAX_C(v) (v ## LL)
+#define UINTMAX_C(v) (v ## ULL)
+#endif
+#endif /* DARWIN_STDINT_7_CHECK */
+
+
#if defined( GLIBC_STDINT_CHECK )
/* This file is part of the GNU C Library. */
# define UINT8_C(c) c