| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Aug 28, 2006, at 7:59 PM, Mike Jackson wrote:
Was there some change to Xcode (and the entire tool chain) in Xcode 2.4 that
would affect the isnan(x) function?
I have now come across two open source packages that get hung up on "isnan(x) is undeclared in this context" type errors.
The projects are OpenSceneGraph (www.openscenegraph.net) and ITK (www.itk.org).
In ITK's case I had to change a #define to look like the following:
#if defined(__APPLE__) #if (__GNUC__ >= 4) #include <cmath> #define isnan(x) std::isnan(x) #else #include <math.h> #define isnan(x) __isnand((double)x) #endif #endif
-Eric
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden
| References: | |
| >Cmath and math.h Changes in Xcode 2.4 (From: Mike Jackson <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.