This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]