OSX has a isnan that conflicts with this .. ??

This commit is contained in:
Roger Hughston 2006-02-16 19:24:33 +00:00
parent 8f087a2d56
commit e4a267db75

View File

@ -17,11 +17,13 @@
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
#ifdef __APPLE__ #ifdef __APPLE__
#ifndef isnan
#define isnan(x) \ #define isnan(x) \
((sizeof(x) == sizeof(double)) ? \ ((sizeof(x) == sizeof(double)) ? \
__isnand(x) : \ __isnand(x) : \
(sizeof(x) == sizeof(float)) ? __isnanf(x) : __isnan(x)) (sizeof(x) == sizeof(float)) ? __isnanf(x) : __isnan(x))
#endif #endif
#endif
#ifdef __INTEL_COMPILER #ifdef __INTEL_COMPILER
// see float.h // see float.h