This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] fix-includes for darwin's math.h testing __APPLE_CC__ instead of __GNUC__


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.


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