[EMAIL PROTECTED] writes:

>> I don't think that we can work around this by defining 
>> _XOPEN_SOURCE in the
>> boost headers: it would imply that the boost headers would have to be
>> included before any other header, or nasty things will happen :-(
>> 
>> I guess we could check for the _XOPEN_SOURCE value in 
>> posix_features.hpp as
>> well as for _XOPEN_VERSION, maybe this is the right thing to 
>> do for all
>> Unixes, I don't know, anyone any ideas?
>> 
>> John Maddock
>> http://ourworld.compuserve.com/homepages/john_maddock/index.htm
>
> Thanks for the feedback John,
>
> I agree that posix_features.h is the logical place to put this, although it
> would still have to be conditionalised for linux and for gcc < version 3.
>
> Providing it can be ensured that boost/config.hpp is included before
> pthread.h then something along the lines of
>
> #if defined(__linux) || defined(__linux__) || defined(linux)
> #if defined(__GNUC__) && (__GNUC__ < 3)

should be:

# if BOOST_WORKAROUND(__GNUC__, < 3)

;->


-- 
                       David Abrahams
   [EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to