summaryrefslogtreecommitdiff
path: root/src/mongo/util/time_support.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-06-11 18:32:23 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-06-16 10:36:48 -0400
commitb06861044ad1610cef2f2fa8a9e24e5b72ee7345 (patch)
treea957920ed04330a170d219a9a95f069a00c5babf /src/mongo/util/time_support.h
parente9aee4b9bc04a4aaad478aeeee561fcba970bcb5 (diff)
downloadmongo-b06861044ad1610cef2f2fa8a9e24e5b72ee7345.tar.gz
SERVER-6686 Remove all uses of boost::xtime outside of time_support.cpp.
Diffstat (limited to 'src/mongo/util/time_support.h')
-rw-r--r--src/mongo/util/time_support.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mongo/util/time_support.h b/src/mongo/util/time_support.h
index 1d1e0cb29ed..850a6e90ca6 100644
--- a/src/mongo/util/time_support.h
+++ b/src/mongo/util/time_support.h
@@ -29,12 +29,11 @@
#pragma once
-#include <iosfwd>
+#include <boost/date_time/gregorian/gregorian_types.hpp>
+#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <ctime>
+#include <iosfwd>
#include <string>
-#include <boost/date_time/posix_time/posix_time_types.hpp>
-#include <boost/thread/xtime.hpp>
-#include <boost/version.hpp>
#include "mongo/base/status_with.h"
#include "mongo/stdx/chrono.h"
@@ -355,11 +354,4 @@ 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
-