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

Ranjit Mathew
Fri Nov 8 11:12:00 GMT 2002

Tom Tromey wrote:
>>>>>>"Ranjit" == Ranjit Mathew <> writes:
> Ranjit> +#define JNIIMPORT        __declspec(dllimport)
> Ranjit> +#define JNIEXPORT        __declspec(dllexport)
> Ranjit> +#define JNICALL          __stdcall
> Does this work with gcc?
> I thought you had to use __attribute__((...)) instead.

The MinGW GCC specs file defines these in the appropriate
__attribute__((...)) terms.

These are the names that Microsoft has chosen and that's why
I've used them.


Ranjit Mathew        Email: rmathew AT hotmail DOT com
INDIA.               Web:

More information about the Java-patches mailing list