Fix bug #480: workaround the Android NDK defining isfinite as a macro
diff --git a/Eigen/src/Cholesky/LDLT.h b/Eigen/src/Cholesky/LDLT.h index a5e3d54..fb15084 100644 --- a/Eigen/src/Cholesky/LDLT.h +++ b/Eigen/src/Cholesky/LDLT.h
@@ -370,7 +370,7 @@ for (Index j = 0; j < size; j++) { // Check for termination due to an original decomposition of low-rank - if (!isfinite(alpha)) + if (!(isfinite)(alpha)) break; // Update the diagonal terms
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index ab153c1..f73e09a 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h
@@ -845,7 +845,7 @@ // std::isfinite is non standard, so let's define our own version, // even though it is not very efficient. -template<typename T> bool isfinite(const T& x) +template<typename T> bool (isfinite)(const T& x) { return x<NumTraits<T>::highest() && x>NumTraits<T>::lowest(); }