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

Ranjit Mathew rmathew@hotmail.com
Fri Nov 8 11:12:00 GMT 2002


Tom Tromey wrote:
>>>>>>"Ranjit" == Ranjit Mathew <rmathew@hotmail.com> 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.

-- 
Ranjit Mathew        Email: rmathew AT hotmail DOT com
Bangalore,
INDIA.               Web: http://ranjitmathew.tripod.com/





More information about the Java-patches mailing list