diff data/model/SparseValueModel.h @ 257:46398ab6ff58

* OS/X build fixes
author Chris Cannam
date Fri, 27 Apr 2007 16:10:10 +0000
parents 9c85517ff0f5
children 2b6c99b607f1
line wrap: on
line diff
--- a/data/model/SparseValueModel.h	Fri Apr 27 15:39:48 2007 +0000
+++ b/data/model/SparseValueModel.h	Fri Apr 27 16:10:10 2007 +0000
@@ -19,6 +19,8 @@
 #include "SparseModel.h"
 #include "base/UnitDatabase.h"
 
+#include <cmath>
+
 /**
  * Model containing sparse data (points with some properties) of which
  * one of the properties is an arbitrary float value.  The other
@@ -62,7 +64,7 @@
     {
 	bool allChange = false;
 
-        if (!isnan(point.value) && !isinf(point.value)) {
+        if (!std::isnan(point.value) && !std::isinf(point.value)) {
             if (!m_haveExtents || point.value < m_valueMinimum) {
                 m_valueMinimum = point.value; allChange = true;
             }