This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
jni.h compatibility
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Discuss List <java at gcc dot gnu dot org>
- Cc: Adam Megacz <megacz at xwt dot org>
- Date: 18 Mar 2002 14:16:49 -0700
- Subject: jni.h compatibility
- Reply-to: tromey at redhat dot com
I've found that some JNI code uses JNIEXPORT and JNICALL macros. I
think we need to add these to our jni.h for compatibility.
For Unix platforms this isn't a problem; they can just be defined as
empty. For Windows, though, I think they might need a real
definition. Adam, do you know how they should be defined?
They are used like this:
JNIEXPORT jint JNICALL foo (...);
Tom