Fixed: make it compile on mac

This commit is contained in:
vl 2010-09-21 08:53:28 +02:00
parent 783c3021b7
commit 709a2c8632

View file

@ -34,7 +34,6 @@
# include <process.h>
# include <intrin.h>
#else
# include <cmath>
# include <unistd.h>
# include <sys/types.h>
#endif
@ -206,7 +205,11 @@ inline double isValidDouble (double v)
#ifdef NL_OS_WINDOWS
return _finite(v) && !_isnan(v);
#else
#ifdef _STLPORT_VERSION
return !isnan(v) && !isinf(v);
#else
return !std::isnan(v) && !std::isinf(v);
#endif
#endif
}