gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in a JNI header.
* gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in a JNI header. From-SVN: r58867
This commit is contained in:
parent
fa123c5309
commit
5bd717f157
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-11-06 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in
|
||||
a JNI header.
|
||||
|
||||
2002-11-05 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
Fix for PR java/6388.
|
||||
|
|
|
@ -1565,7 +1565,7 @@ DEFUN(print_stub_or_jni, (stream, jcf, name_index, signature_index, is_init,
|
|||
return;
|
||||
|
||||
if (flag_jni && ! stubs)
|
||||
fputs ("extern ", stream);
|
||||
fputs ("extern JNIEXPORT ", stream);
|
||||
|
||||
/* If printing a method, skip to the return signature and print
|
||||
that first. However, there is no return value if this is a
|
||||
|
@ -1597,6 +1597,9 @@ DEFUN(print_stub_or_jni, (stream, jcf, name_index, signature_index, is_init,
|
|||
/* When printing a JNI header we need to respect the space. In
|
||||
other cases we're just going to insert a newline anyway. */
|
||||
fputs (need_space && ! stubs ? " " : "\n", stream);
|
||||
|
||||
if (flag_jni && ! stubs)
|
||||
fputs ("JNICALL ", stream);
|
||||
|
||||
/* Now print the name of the thing. */
|
||||
print_name_for_stub_or_jni (stream, jcf, name_index,
|
||||
|
|
Loading…
Add table
Reference in a new issue