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 bool (isfinite)(T x) { return _finite(x); } template bool (isnan)(T x) { return _isnan(x); }