Boost logo

Boost :

Subject: Re: [boost] [predef] Status and review results?
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2013-04-27 04:03:32


On 4/27/2013 1:32 AM, Ioannis Papadopoulos wrote:
> On 04/21/2013 04:00 PM, Rene Rivera wrote:
>> Just a quick message to mention that I've finished all the review related
>> changes to the Predef library. And done some of the future tasks on the
>> library. In particular the addition of endianness definitions and the
>> moving of MinGW as a platform instead of a compiler (and hence the
>> addition
>> of BOOST_PLAT category of macros.
>>
>> And the one question I have is.. When will the review results of the
>> library be decided on? I ask for two reasons. One, the obvious, is
>> just to
>> know if it's accepted or not. And to know if it's not accepted and hence
>> that I should spend time to recreate a "boost/detail/endian.hpp" header
>> that implements the Predef logic for endian detection.
>>
>> Note the project move to Github earlier this year (in preparation for the
>> Boost git move). You can find the project at <
>> https://github.com/grafikrobot/boost-predef>, and browse the current
>> documentation at <http://tinyurl.com/cqqhhev>.
>>
>
> Can I suggest some additions?
>

Also seems to be missing iOS.

#include <TargetConditionals.h>

#if TARGET_IPHONE_SIMULATOR
#if TARGET_OS_MAC
#if TARGET_OS_IPHONE

note not #ifdef

There is also

#include <Availability.h>

Which has:
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 50000
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_5_1


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