diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-06 22:10:30 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-06 22:10:30 +0000 |
| commit | cb4c80809cd59a5597df8a80263546d983a3b7d0 (patch) | |
| tree | 51d9ea13b5da145b0680aa5f857cd9a6c613f535 | |
| parent | 08329eb1f9c5ebb79d45df9e59d1549ee0a63ea4 (diff) | |
| download | ppe42-gcc-cb4c80809cd59a5597df8a80263546d983a3b7d0.tar.gz ppe42-gcc-cb4c80809cd59a5597df8a80263546d983a3b7d0.zip | |
* gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in
a JNI header.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58867 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/java/gjavah.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 4b1ee3edeaf..74bb4e548b8 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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. diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 3d7e32e0022..1e8c701e24e 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -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, |

