ports/benchmarks/bonnie++/files/patch-duration.cpp
Ganael LAPLANCHE 782412b4a4 Fix build with Gcc/libstdc++
PR:		ports/188678
Submitted by:	Matthew Rezny <matthew@reztek.cz>
Tested by:	marino
2014-05-12 06:50:03 +00:00

26 lines
472 B
C++

--- duration.cpp.orig 2008-12-23 23:26:42.000000000 +0100
+++ duration.cpp 2014-05-10 12:04:40.000000000 +0200
@@ -1,5 +1,3 @@
-using namespace std;
-
#include <stdlib.h>
#include "duration.h"
@@ -20,6 +18,8 @@
#endif
#endif
+using namespace std;
+
Duration_Base::Duration_Base()
: m_start(0.0)
, m_max(0.0)
@@ -38,7 +38,7 @@
getTime(&tv);
double ret;
ret = tv - m_start;
- m_max = __max(m_max, ret);
+ m_max = max(m_max, ret);
return ret;
}