[PATCH] fix-includes for darwin's math.h testing __APPLE_CC__ instead of __GNUC__
Mike Stump
mrs@apple.com
Wed Aug 10 17:43:00 GMT 2005
On Aug 9, 2005, at 11:12 AM, Andrew Pinski wrote:
> For the following testcase:
>
> #include <math.h>
> const volatile static float arg2_float_23 = NAN;
>
> NAN should be allowed in this situation as allowed by C99
> but since darwin's headers do:
> #if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)
Newer OSes do:
#if defined(__GNUC__)
Do you seem any problems doing that? If not, then I think I'd rather
do that.
More information about the Gcc-patches
mailing list