aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-07-12 09:40:07 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-07-12 09:40:07 +0000
commitd4a8b6a2f37357e1ad9d7e998dc05738559b2ce5 (patch)
tree931abde5129620f071a998718113844f59074ba5 /libjava
parent115b4dd3a20f3ba9f61523c82013eb602c06a062 (diff)
downloadgcc-d4a8b6a2f37357e1ad9d7e998dc05738559b2ce5.zip
gcc-d4a8b6a2f37357e1ad9d7e998dc05738559b2ce5.tar.gz
gcc-d4a8b6a2f37357e1ad9d7e998dc05738559b2ce5.tar.bz2
mprec.h: Protect definition of uint32_t with #ifndef _UINT32_T.
* java/lang/mprec.h: Protect definition of uint32_t with #ifndef _UINT32_T. From-SVN: r28065
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/lang/mprec.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index c7536be..3cb9731 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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
diff --git a/libjava/java/lang/mprec.h b/libjava/java/lang/mprec.h
index 7989075..fbfba4c 100644
--- a/libjava/java/lang/mprec.h
+++ b/libjava/java/lang/mprec.h
@@ -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. */