summaryrefslogtreecommitdiff
path: root/libjava/classpath/m4
diff options
context:
space:
mode:
authorandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-19 20:44:43 +0000
committerandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-19 20:44:43 +0000
commit2e3dc2c9fc8c9a422aabd64641184de3bcf92563 (patch)
tree6ae6e576fc910b8034959297185139b706d57a9d /libjava/classpath/m4
parent8dbc1f0daf6a7914878c08fe3239288a01d8ee1b (diff)
downloadgcc-2e3dc2c9fc8c9a422aabd64641184de3bcf92563.tar.gz
2007-05-19 Andreas Tobler <a.tobler@schweiz.org>
PR libgcj/31659 * m4/ax_create_stdint_h.m4: Apply patch from PR31659. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124860 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/m4')
-rw-r--r--libjava/classpath/m4/ax_create_stdint_h.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/libjava/classpath/m4/ax_create_stdint_h.m4 b/libjava/classpath/m4/ax_create_stdint_h.m4
index acffeb45c65..453af07480e 100644
--- a/libjava/classpath/m4/ax_create_stdint_h.m4
+++ b/libjava/classpath/m4/ax_create_stdint_h.m4
@@ -621,21 +621,46 @@ typedef long intptr_t;
/* These limits are merily those of a two complement byte-oriented system */
/* Minimum of signed integral types. */
+#ifndef INT8_MIN
# define INT8_MIN (-128)
+#endif
+#ifndef INT16_MIN
# define INT16_MIN (-32767-1)
+#endif
+#ifndef INT32_MIN
# define INT32_MIN (-2147483647-1)
+#endif
+#ifndef INT64_MIN
# define INT64_MIN (-__INT64_C(9223372036854775807)-1)
+#endif
+
/* Maximum of signed integral types. */
+#ifndef INT8_MAX
# define INT8_MAX (127)
+#endif
+#ifndef INT16_MAX
# define INT16_MAX (32767)
+#endif
+#ifndef INT32_MAX
# define INT32_MAX (2147483647)
+#endif
+#ifndef INT64_MAX
# define INT64_MAX (__INT64_C(9223372036854775807))
+#endif
/* Maximum of unsigned integral types. */
+#ifndef UINT8_MAX
# define UINT8_MAX (255)
+#endif
+#ifndef UINT16_MAX
# define UINT16_MAX (65535)
+#endif
+#ifndef UINT32_MAX
# define UINT32_MAX (4294967295U)
+#endif
+#ifndef UINT64_MAX
# define UINT64_MAX (__UINT64_C(18446744073709551615))
+#endif
/* Minimum of signed integral types having a minimum size. */
# define INT_LEAST8_MIN INT8_MIN