changeset 19:08ee18123f5a

* Build fixes for OS/X and Windows
author cannam
date Wed, 12 Apr 2006 09:57:07 +0000
parents b4043af42278
children 68b8b32a2070
files examples/SpectralCentroid.cpp host/simplehost.cpp
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/examples/SpectralCentroid.cpp	Mon Apr 10 10:31:19 2006 +0000
+++ b/examples/SpectralCentroid.cpp	Wed Apr 12 09:57:07 2006 +0000
@@ -160,7 +160,7 @@
 
     if (denom != 0.0) {
 	float centroidLin = float(numLin / denom);
-	float centroidLog = exp10f(float(numLog / denom));
+	float centroidLog = powf(10, float(numLog / denom));
 	Feature feature;
 	feature.hasTimestamp = false;
 	feature.values.push_back(centroidLog);
--- a/host/simplehost.cpp	Mon Apr 10 10:31:19 2006 +0000
+++ b/host/simplehost.cpp	Wed Apr 12 09:57:07 2006 +0000
@@ -43,6 +43,8 @@
 
 #include "system.h"
 
+#include <cmath>
+
 using std::cout;
 using std::cerr;
 using std::endl;