From aef3b0750888efb7333715edf160265ea6b95149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 10 Jan 2016 18:43:20 -0800 Subject: [PATCH] Fixed issue #646. --- 3rdparty/nvtt/nvmath/nvmath.h | 4 ++++ 1 file changed, 4 insertions(+) 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.