Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a typing issue around std::abs
[simgrid.git] / src / surf / trace_mgr_test.cpp
index 6c6c16443790fca6ce8058ef4285d51e7ba7854a..0ef287dc90693143b07cecc31940dbce6f1d752c 100644 (file)
@@ -16,6 +16,8 @@ namespace utf = boost::unit_test;
 #include "xbt/log.h"
 #include "xbt/misc.h"
 
+#include <math.h>
+
 XBT_LOG_NEW_DEFAULT_CATEGORY(unit, "Unit tests of the Trace Manager");
 
 double thedate;
@@ -31,7 +33,7 @@ public:
 
 static inline bool doubleEq(double d1, double d2)
 {
-  return std::abs(d1 - d2) < 0.0001;
+  return fabs(d1 - d2) < 0.0001;
 }
 class Evt {
 public: