Skip to content

Commit 745a597

Browse files
committed
Fix conflict with Microsoft macros: use std::numeric_limits<double>::max() for MAX_OADATE
1 parent 464dab8 commit 745a597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/time_shield_cpp/parts/constants.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace time_shield {
101101
constexpr int64_t ERROR_YEAR = 9223372036854770000LL; ///< Error year value
102102
constexpr int64_t MAX_TIMESTAMP = 9223371890843040000LL; ///< Maximum timestamp value
103103
constexpr int64_t ERROR_TIMESTAMP = 9223372036854770000LL; ///< Error timestamp value
104-
constexpr double MAX_OADATE = std::numeric_limits<double>::max(); ///< Maximum OLE automation date
104+
constexpr double MAX_OADATE = (std::numeric_limits<double>::max()); ///< Maximum OLE automation date
105105
constexpr double AVG_DAYS_PER_YEAR = 365.25; ///< Average days per year
106106

107107
/// \}

0 commit comments

Comments
 (0)