Prevent warnings when using -Wundef flag

This commit is contained in:
Pavel authored and Howard Hinnant committed 2016-07-04 11:14:59 -04:00
1 parent 7331f36318
commit 52e2a0b2cf
3 files changed
+36 -32

No files matched your search

+4 -4
View File
@@ -957,7 +957,7 @@ trunc(const std::chrono::duration<Rep, Period>& d)
}
// VS Update 2 provides floor, ceil, round, abs in chrono.
#if _MSC_FULL_VER < 190023918
#if !defined(_MSC_FULL_VER) || _MSC_FULL_VER < 190023918
// round down
template <class To, class Rep, class Period>
@@ -1054,14 +1054,14 @@ ceil(const std::chrono::time_point<Clock, FromDuration>& tp)
return time_point<Clock, To>{ceil<To>(tp.time_since_epoch())};
}
#else // _MSC_FULL_VER < 190023918
#else // !defined(_MSC_FULL_VER) || _MSC_FULL_VER < 190023918
using std::chrono::floor;
using std::chrono::ceil;
using std::chrono::round;
using std::chrono::abs;
#endif // _MSC_FULL_VER < 190023918
#endif // !defined(_MSC_FULL_VER) || _MSC_FULL_VER < 190023918
// trunc towards zero
template <class To, class Clock, class FromDuration>
@@ -3829,7 +3829,7 @@ class time_of_day
{
using base = detail::time_of_day_storage<Duration>;
public:
#if !(_MSC_VER && !defined(__clang__))
#if !(defined(_MSC_VER) && !defined(__clang__))
// C++11
using base::base;
#else