|
From: rainbyte <rai...@us...> - 2012-07-17 10:51:39
|
Author: Alvaro Fernando García <alv...@gm...>
Date: Sat Jul 7 18:53:56 2012 -0300
Fixed boost xtime.hpp usage (for 1.50 version)
---
game/xtime.hh | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/game/xtime.hh b/game/xtime.hh
index 41303cb..8f5463d 100644
--- a/game/xtime.hh
+++ b/game/xtime.hh
@@ -1,5 +1,6 @@
#pragma once
+#include <boost/version.hpp>
#include <boost/thread/xtime.hpp>
#include <cmath>
@@ -20,7 +21,11 @@ namespace {
}
boost::xtime now() {
boost::xtime time;
+#if (BOOST_VERSION / 100 % 1000 >= 50)
+ boost::xtime_get(&time, boost::TIME_UTC_);
+#else
boost::xtime_get(&time, boost::TIME_UTC);
+#endif
return time;
}
double seconds(boost::xtime const& time) {
|