Patch: jni.h: Define JNICALL, JNIIMPORT and JNIEXPORT for Win32

Adam Megacz gcj@lists.megacz.com
Thu Nov 7 22:26:00 GMT 2002


Ranjit Mathew <rmathew@hotmail.com> writes:
>      The following trivial patch updates the JNI linker
> defines for Win32 in jni.h.

Looks good to me; I'll commit it tomorrow.


> Another thing to note is the use of _WIN32, __WIN32__ and
> WIN32 - _WIN32 is the MS specified Win32 define, some
> compilers define __WIN32__ and libgcj itself uses WIN32.
> I didn't know which one to favour over the others... :-)

For now, use WIN32 for consistency.  At some point we can change all
the ifdefs in one big patch.

  - a




More information about the Java-patches mailing list