Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-12-19 10:21:57


Gary_Gale_at_[hidden] 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
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk