aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/gjavah.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-11-08 20:33:37 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-11-08 20:33:37 +0000
commit136c35df1c6a37c2f831db88221178b091b7e50f (patch)
treec74941d3d05fc4ea2b28c13968133b53e69c1d66 /gcc/java/gjavah.c
parent02a480f137ab2345727d5ef0b933582dda7f467f (diff)
downloadgcc-136c35df1c6a37c2f831db88221178b091b7e50f.zip
gcc-136c35df1c6a37c2f831db88221178b091b7e50f.tar.gz
gcc-136c35df1c6a37c2f831db88221178b091b7e50f.tar.bz2
gjavah.c (process_file): Only include gcj/cni.h when generating CNI stubs.
* gjavah.c (process_file): Only include gcj/cni.h when generating CNI stubs. From-SVN: r37325
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r--gcc/java/gjavah.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 6e6075e..3b9cee5 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -1766,7 +1766,8 @@ DEFUN(process_file, (jcf, out),
if (len > 6 && ! strcmp (&jcf->classname[len - 6], ".class"))
len -= 6;
print_include (out, jcf->classname, len);
- print_include (out, "gcj/cni", -1);
+ if (! flag_jni)
+ print_include (out, "gcj/cni", -1);
}
}