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: JNI/Win32 Patch #2: Fix lookup of "JNI_OnLoad" on loading a JNI DLL


>>>>> "Ranjit" == Ranjit Mathew <rmathew@hotmail.com> writes:

Ranjit> I'm sorry, but I overlooked the fact that the JNI_OnLoad
Ranjit> function itself must be called using the "stdcall" convention.

These patches generally look fine to me.  I think we should wait for
the paperwork to clear before putting them in, though.

Ranjit> +#ifdef WIN32
Ranjit> +      jint vers = ((jint (__attribute__((stdcall)) *) (JavaVM *, void *))
Ranjit> +                   onload) (vm, NULL);

Let's use `JNICALL' here and avoid the #ifdef.

Tom


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