Removed the global scope operators for the isnan(..) etc calls to fix compilation
under some compiler combinations.
This commit is contained in:
parent
25bb70a86b
commit
d20c2795d1
@ -73,21 +73,21 @@ inline double DegreesToRadians(double angle) { return angle*M_PI/180.0; }
|
||||
inline double RadiansToDegrees(double angle) { return angle*180.0/M_PI; }
|
||||
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
inline bool isNaN(float v) { return ::_isnan(v)!=0; }
|
||||
inline bool isNaN(double v) { return ::_isnan(v)!=0; }
|
||||
inline bool isInfinite(float v) { return !::_finite(v); }
|
||||
inline bool isInfinite(double v) { return !::_finite(v); }
|
||||
inline bool isNaN(float v) { return _isnan(v)!=0; }
|
||||
inline bool isNaN(double v) { return _isnan(v)!=0; }
|
||||
inline bool isInfinite(float v) { return !_finite(v); }
|
||||
inline bool isInfinite(double v) { return !_finite(v); }
|
||||
#elif __sgi
|
||||
inline bool isNaN(float v) { return ::isnan(v); }
|
||||
inline bool isNaN(double v) { return ::isnan(v); }
|
||||
inline bool isNaN(float v) { return isnan(v); }
|
||||
inline bool isNaN(double v) { return isnan(v); }
|
||||
// can't find a function to test for infiniting on sgi yet..
|
||||
inline bool isInfinite(float v) { return false; }
|
||||
inline bool isInfinite(double v) { return false; }
|
||||
#else
|
||||
inline bool isNaN(float v) { return ::isnan(v); }
|
||||
inline bool isNaN(double v) { return ::isnan(v); }
|
||||
inline bool isInfinite(float v) { return ::isinf(v); }
|
||||
inline bool isInfinite(double v) { return ::isinf(v); }
|
||||
inline bool isNaN(float v) { return isnan(v); }
|
||||
inline bool isNaN(double v) { return isnan(v); }
|
||||
inline bool isInfinite(float v) { return isinf(v); }
|
||||
inline bool isInfinite(double v) { return isinf(v); }
|
||||
#endif
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user