This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: Use of _XOPEN_SOURCE?


On Mar 16 11:32, Howland Craig D (Craig) wrote:
> On March 16, 2010 11:29 AM, Corinna wrote:
> > The GLibc headers OTOH definitely allow it:
> > 
> >   #if (_XOPEN_SOURCE - 0) >= 700
> >     ...
> That's a good trick:  we can use that to get around the problem.

Indeed.  But that's not the entire problem.  What does

  #define _XOPEN_SOURCE

mean?  GLibc maps it to 

 #define _POSIX_C_SOURCE 2

nd it also covers the case that _XOPEN_SOURCE is set to 500 by
setting _POSIX_C_SOURCE to 199506L (that's SUSv2 right?)

We should do the same, perhaps.  WOuld you mind to prepare a patch?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


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