]> gcc.gnu.org Git - gcc.git/commitdiff
mprec.h: Protect definition of uint32_t with #ifndef _UINT32_T.
authorTom Tromey <tromey@cygnus.com>
Mon, 12 Jul 1999 09:40:07 +0000 (09:40 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 12 Jul 1999 09:40:07 +0000 (09:40 +0000)
* java/lang/mprec.h: Protect definition of uint32_t with #ifndef
_UINT32_T.

From-SVN: r28065

libjava/ChangeLog
libjava/java/lang/mprec.h

index c7536be7429defe1b569dc57ba2cdbdee27fc2fc..3cb973189f35e8f86d06e8cd0a0dc4866fe6ee57 100644 (file)
@@ -1,3 +1,8 @@
+1999-07-12  Tom Tromey  <tromey@cygnus.com>
+
+       * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
+       _UINT32_T.
+
 1999-07-07  Andrew Haley  <aph@cygnus.com>
 
         * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
index 7989075aac342e04c0020b3b10aad0d5a37a8160..fbfba4c3ba0b498b16c3302e49442260a6cd0ef6 100644 (file)
@@ -61,7 +61,13 @@ typedef u_int32_t uint32_t;
 #if !defined HAVE_BSD_INT32_DEFINED && !defined HAVE_INT32_DEFINED
 // FIXME -- this could have problems with systems that don't define SI to be 4
 typedef int int32_t __attribute__((mode(SI)));
+
+/* This is a blatant hack: on Solaris 2.5, pthread.h defines uint32_t
+   in pthread.h, which we sometimes include.  We protect our
+   definition the same way Solaris 2.5 does, to avoid redefining it.  */
+#  ifndef _UINT32_T
 typedef unsigned int uint32_t __attribute__((mode(SI)));
+#  endif
 #endif
 
   /* These typedefs are true for the targets running Java. */
This page took 0.06907 seconds and 5 git commands to generate.