gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not extern.
authorMark Wielaard <mark@klomp.org>
Fri, 21 May 2004 11:08:02 +0000 (11:08 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Fri, 21 May 2004 11:08:02 +0000 (11:08 +0000)
       * gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not
       extern.

From-SVN: r82094

gcc/java/ChangeLog
gcc/java/gjavah.c

index 70cf859..c636780 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-21  Mark Wielaard  <mark@klomp.org>
+
+       * gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not
+       extern.
+
 2004-05-19  Paolo Bonzini  <bonzini@gnu.org>
 
        * typeck.c: Remove non-printable character 160.
index 45e5f25..19958f3 100644 (file)
@@ -1567,7 +1567,7 @@ print_stub_or_jni (FILE* stream, JCF* jcf, int name_index,
        return;
 
       if (flag_jni && ! stubs)
-       fputs ("extern JNIEXPORT ", stream);
+       fputs ("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