aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/fastmath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fastmath.cpp')
-rw-r--r--test/fastmath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fastmath.cpp b/test/fastmath.cpp
index 16462d54f..efdd5b313 100644
--- a/test/fastmath.cpp
+++ b/test/fastmath.cpp
@@ -18,7 +18,7 @@ void check(bool b, bool ref)
std::cout << " BAD ";
}
-#if EIGEN_COMP_MSVC < 1800
+#if EIGEN_COMP_MSVC && EIGEN_COMP_MSVC < 1800
namespace std {
template<typename T> bool (isfinite)(T x) { return _finite(x); }
template<typename T> bool (isnan)(T x) { return _isnan(x); }