From f1865cde4be5cfa09f94ff9821ba1d38deb45c49 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 21 May 2004 11:08:02 +0000 Subject: [PATCH] gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not extern. * gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not extern. From-SVN: r82094 --- gcc/java/ChangeLog | 5 +++++ gcc/java/gjavah.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 70cf8597f4a..c63678023ac 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2004-05-21 Mark Wielaard + + * gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not + extern. + 2004-05-19 Paolo Bonzini * typeck.c: Remove non-printable character 160. diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 45e5f251b9f..19958f3832a 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -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 -- 2.30.2