This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JNI -vs- stdio.h


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]