From Daniel Larimer, "Apple updated their developer tools again and broke the __isnanf and

__isnand methods... replacing them with a call to isnan(v) seems to
work on both Xcode 2.3 and 2.4"
This commit is contained in:
Robert Osfield
2006-08-10 08:45:42 +00:00
parent 91e9679362
commit 14f924c2af
2 changed files with 404 additions and 3 deletions

View File

@@ -196,8 +196,8 @@ inline double round(double v) { return v>=0.0?floor(v+0.5):ceil(v-0.5); }
#else
#if defined(__APPLE__)
#if !defined (APPLE_PRE_10_2)
inline bool isNaN(float v) { return __isnanf(v); }
inline bool isNaN(double v) { return __isnand(v); }
inline bool isNaN(float v) { return isnan(v); }
inline bool isNaN(double v) { return isnan(v); }
#else
inline bool isNaN(float v) { return std::isnan(v); }
inline bool isNaN(double v) { return std::isnan(v); }