This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: WIN-09.: shs.h, shs.cc, natSimpleSHSStream.cc: use uint<n>_t instead of LONG and BYTE
Tom Tromey <tromey@redhat.com> writes:
> Can we assume uint<n>_t on all platforms? Or would we need configury
> support here?
Isn't that stuff pretty standard?
It's available on all the platforms gcj supports (win32, linux,
solaris, macosx).
> Adam> -typedef unsigned char BYTE;
> Adam> -typedef unsigned int LONG; /* A 32-bit type */
> Simpler in our code would be to use jbyte and jint.
> We know jint is a 32-bit integer.
That sounds better.
> However, I don't know if `unsigned jint' will work or not.
Sadly, no
unsigned jint foo;
foo.cc:24: syntax error before `;' token
- a