--- a/src/lte/model/lte-enb-phy.cc Fri Aug 31 12:24:28 2012 +0200
+++ b/src/lte/model/lte-enb-phy.cc Sat Sep 01 20:57:21 2012 +0200
@@ -21,7 +21,7 @@
#include <ns3/object-factory.h>
#include <ns3/log.h>
-#include <math.h>
+#include <cmath>
#include <ns3/simulator.h>
#include <ns3/attribute-accessor-helper.h>
#include <ns3/double.h>
@@ -595,7 +595,7 @@
int i = 0;
for (it = sinr.ConstValuesBegin (); it != sinr.ConstValuesEnd (); it++)
{
- double sinrdb = 10 * log10 ((*it));
+ double sinrdb = 10 * std::log10 ((*it));
// NS_LOG_DEBUG ("ULCQI RB " << i << " value " << sinrdb);
// convert from double to fixed point notation Sxxxxxxxxxxx.xxx
int16_t sinrFp = LteFfConverter::double2fpS11dot3 (sinrdb);