Fix bug #480: workaround the Android NDK defining isfinite as a macro

This commit is contained in:
Gael Guennebaud 2012-07-05 17:22:25 +02:00
parent 23df2eed46
commit 5dbdde0420
2 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ template<> struct ldlt_inplace<Lower>
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

View File

@ -845,7 +845,7 @@ template<> struct scalar_fuzzy_impl<bool>
// 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();
}