diff --git a/3rdparty/nvtt/nvmath/nvmath.h b/3rdparty/nvtt/nvmath/nvmath.h index 7a64f6001..fce7f5f2f 100644 --- a/3rdparty/nvtt/nvmath/nvmath.h +++ b/3rdparty/nvtt/nvmath/nvmath.h @@ -35,7 +35,11 @@ namespace nv inline bool isFinite(const float f) { +#if defined(_MSC_VER) && _MSC_VER <= 1800 + return true; +#else return std::isfinite(f); +#endif // defined(_MSC_VER) && _MSC_VER <= 1800 } // Eliminates negative zeros from a float array.