diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-07-14 18:07:40 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-07-14 18:07:40 -0400 |
commit | 11513316d1bdc9ad9e8a19746fb7a04c15f78b3b (patch) | |
tree | fe4ff886ae6c7dee4c32b304881c0a2e2325cb2d /src/mongo/util/time_support.h | |
parent | 5665ee8b85d600c0720cb1e12774f5a660afa456 (diff) | |
download | mongo-11513316d1bdc9ad9e8a19746fb7a04c15f78b3b.tar.gz |
SERVER-6449 - decide which BOSOT::TIME_UTC variant to use at compile time
Diffstat (limited to 'src/mongo/util/time_support.h')
-rw-r--r-- | src/mongo/util/time_support.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/util/time_support.h b/src/mongo/util/time_support.h index 33662c8e4b9..511bc092fb1 100644 --- a/src/mongo/util/time_support.h +++ b/src/mongo/util/time_support.h @@ -19,6 +19,7 @@ #include <ctime> #include <string> +#include <boost/thread/xtime.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #include "mongo/bson/util/misc.h" // Date_t @@ -62,4 +63,10 @@ namespace mongo { struct tm *gmtime(const time_t *timep); struct tm *localtime(const time_t *timep); +#if defined(MONGO_BOOST_TIME_UTC_HACK) || (BOOST_VERSION >= 105000) +#define MONGO_BOOST_TIME_UTC boost::TIME_UTC_ +#else +#define MONGO_BOOST_TIME_UTC boost::TIME_UTC +#endif + } // namespace mongo |