This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: Darwin and _BSD_WCHAR_T_DEFINED_


Andreas Tobler wrote:
> 
> Bryce McKinlay wrote:
> [snip]
> > The problem here is that gcc's header undefines _BSD_WCHAR_T_ but does
> > not define _BSD_WCHAR_T_DEFINED_, so if the stddef.h gets included
> > before any of darwin's headers, we get an error like this one:
> 
> What about this patch? I have to apply it to the mainline to bootstrap
> on darwin-1.4.
> Could it be that I(we) have a nasty env setting?
> P.S.  I don't see it on the apple branch so far. (synced yesterday from main)

This is a weird situation.  Once upon a time I applied a similar patch
to Apple's ginclude/stddef.h, but more recently I and others been able
to bootstrap mainline sources without needing this.  Now I'm doing this
on Darwin 1.3 (aka OS X 10.0), so the version bump may have something to
do with it.

In any case Bryce's proposed patch is not in a Darwin-only place,
and I have no idea if any of the many other flavors of BSD will be
hosed by this change.  What do the true BSD whizzes think about
this one?

Stan


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