libgcj/4439: CNI: would be nice to be able to create Java arraywith 'new'
Jeff Sturm
jsturm@one-point.com
Wed Oct 3 08:07:00 GMT 2001
On 3 Oct 2001, Tom Tromey wrote:
> >>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
>
> Bryce> Tom, can we avoid including gcj/javaprims.h from jni.h?
>
> I don't think it would be very easy :-(
Why is that?
jni.h must be useable with any good C/C++ compiler.
[jsturm@mars jsturm]$ ccc -I/opt/gcc/include -c junk.c
cc: Error: /opt/gcc/include/jni.h, line 34: Missing ";". (nosemi)
typedef int jbyte __attribute__((__mode__(__QI__)));
----------------------^
Jeff
More information about the Gcc-bugs
mailing list