From 136c35df1c6a37c2f831db88221178b091b7e50f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 8 Nov 2000 20:33:37 +0000 Subject: [PATCH] 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 --- gcc/java/ChangeLog | 5 +++++ gcc/java/gjavah.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index f4eff5346c33..b10ac43d57f0 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-11-08 Tom Tromey + + * gjavah.c (process_file): Only include gcj/cni.h when generating + CNI stubs. + 2000-11-07 Joseph S. Myers * expr.c (note_instructions), jcf-io.c (find_class), jcf-parse.c diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 6e6075ea0ffd..3b9cee5313ef 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); } } -- 2.43.5