This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: JNI -vs- stdio.h
- From: Per Bothner <per at bothner dot com>
- To: tromey at redhat dot com
- Cc: Java Discuss List <java at gcc dot gnu dot org>
- Date: Fri, 08 Mar 2002 13:09:14 -0800
- Subject: Re: JNI -vs- stdio.h
- References: <87k7smol5k.fsf@creche.redhat.com>
Tom Tromey wrote:
> I just ran across some JNI code that uses NULL but which doesn't
> include stdio.h or any other header that might define it.
>
> I notice that Sun's jni.h does include stdio.h.
> I'm reluctant to do this, but I think I will write a patch to change
> ours to include stdio.h as well, for compatibility.
>
> Is there any reason not to do this?
There's a *reason* not to do - standard headers should't
randomly include other standard headers. But given this
mistake from Sun, this is an instance where I agree we
should be bug-compatible.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/