[PATCH] [Java]: Include coretypes.h, jcf-.h in win32-host.c

Andrew Haley aph@redhat.com
Thu Sep 9 06:52:00 GMT 2004


Mohan Embar writes:
 > 
 > > > >Mohan, could you please sort this out?
 > > > 
 > > > I was able to reproduce this and fix this by including both coretypes.h
 > > > and jcf.h.
 > > > 
 > > > ...<i>but</i> if #include "jcf.h" can't be done without #include "coretypes.h",
 > > > wouldn't it be better to include coretypes.h in jcf.h and eliminate the
 > > > double-include everywhere else?
 > >
 > >That depends.  Files that use "coretypes.h" should include it,
 > >regardless of whether "jcf.h" includes it.  But they shouldn't have to
 > >include "coretypes.h" themselves if they don't use anything in it.
 > >
 > > > Let me know either way and I'll submit a patch.
 > >
 > >Please do the right thing.
 > 
 > The following patch is not as far-reaching as what we wanted, but follows
 > the path of least resistance by doing the same thing that the other files
 > do. It eliminates the warning when compiling win32-host.c on a Win32 host.
 > (This is a do-nothing file for non-Win32 hosts.)
 > 
 > I tested this in conjunction with the following patches (required to unbreak
 > build != host Java builds):
 > 
 > - http://gcc.gnu.org/ml/gcc-patches/2004-09/msg00586.html
 >   (Zack said he would approve this if you approved the next one.)
 > 
 > - http://gcc.gnu.org/ml/gcc-patches/2004-09/msg00587.html
 >   (Needs your review.)

Looks good to me.

Andrew.



More information about the Java-patches mailing list