Mercurial > hg > svcore
diff data/model/SparseValueModel.h @ 606:1415e35881f6
* Some (incomplete) Solaris build bobs
author | Chris Cannam |
---|---|
date | Thu, 10 Sep 2009 14:17:59 +0000 |
parents | 700cd3350391 |
children | 59e7fe1b1003 |
line wrap: on
line diff
--- a/data/model/SparseValueModel.h Tue Sep 08 16:53:32 2009 +0000 +++ b/data/model/SparseValueModel.h Thu Sep 10 14:17:59 2009 +0000 @@ -19,7 +19,7 @@ #include "SparseModel.h" #include "base/UnitDatabase.h" -#include <cmath> +#include "system/System.h" /** * Model containing sparse data (points with some properties) of which @@ -68,7 +68,7 @@ { bool allChange = false; - if (!std::isnan(point.value) && !std::isinf(point.value)) { + if (!ISNAN(point.value) && !ISINF(point.value)) { if (!m_haveExtents || point.value < m_valueMinimum) { m_valueMinimum = point.value; allChange = true; // std::cerr << "addPoint: value min = " << m_valueMinimum << std::endl;