This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
javaop.h type collision on AIX
- To: bothner at cygnus dot com
- Subject: javaop.h type collision on AIX
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Sat, 14 Nov 1998 18:15:23 -0500
- Cc: egcs-bugs at cygnus dot com
javaop.h defines some size-dependent types:
typedef char int8;
typedef unsigned char uint8;
#ifndef int16
#define int16 short
#endif
typedef unsigned int16 uint16;
#ifndef int32
#define int32 long
#endif
typedef unsigned int32 uint32;
AIX 4.3.1 also typedefs those types in /usr/include/sys/inttypes.h
which is conflicting with the javaop definitions. Unlike the other types,
int8 is not protected with #ifndef. Also, while uint8 is defined as
unsigned char, int8 simply is defined as char without modifier. On some
targets, char is unsigned by default, so I do not think this is what you
intended.
I think that there are a couple of problems: signed-ness
assumptions and not protecting all types of previous definitions.
David