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
This commit is contained in:
Tom Tromey 2000-11-08 20:33:37 +00:00 committed by Tom Tromey
parent 02a480f137
commit 136c35df1c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-11-08 Tom Tromey <tromey@cygnus.com>
* gjavah.c (process_file): Only include gcj/cni.h when generating
CNI stubs.
2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
* expr.c (note_instructions), jcf-io.c (find_class), jcf-parse.c

View File

@ -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);
}
}