fixed isnan() not defined

This commit is contained in:
matlabbe
2016-05-03 20:44:06 -04:00
parent 7230474f98
commit d2882a88f3
+2 -4
View File
@@ -41,12 +41,10 @@
template<class T>
inline bool uIsNan(const T & value)
{
#ifdef __APPLE__
return std::isnan(value);
#elif _MSC_VER
#if _MSC_VER
return _isnan(value) != 0;
#else
return isnan(value);
return std::isnan(value);
#endif
}