This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] PR31659
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Cc: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Sat, 19 May 2007 22:27:22 +0200
- Subject: [patch] PR31659
Hello all,
I'll apply this patch soon. Tom approved it in the PR and again on IRC.
I tested it on sparc-solaris8 multilib. I hope hpux will also work.
Also, I'm going to submit it to classpath soon.
Ok?
Thanks,
Andreas
2007-05-19 Andreas Tobler <a.tobler@schweiz.org>
PR libgcj/31659
* m4/ax_create_stdint_h.m4: Apply patch from PR31659.
* configure: Regenerate.
Index: m4/ax_create_stdint_h.m4
===================================================================
--- m4/ax_create_stdint_h.m4 (revision 124824)
+++ m4/ax_create_stdint_h.m4 (working copy)
@@ -621,21 +621,46 @@
/* 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