Skip to content

Commit fd5174a

Browse files
committed
Fix detail/inlined/win/chrono.hpp relying on a <winerror.h> macro
1 parent dbac4f8 commit fd5174a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/boost/chrono/detail/inlined/win/chrono.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <boost/winapi/time.hpp>
1616
#include <boost/winapi/timers.hpp>
1717
#include <boost/winapi/get_last_error.hpp>
18+
#include <boost/winapi/error_codes.hpp>
1819
#include <boost/assert.hpp>
1920

2021
namespace boost
@@ -70,7 +71,7 @@ namespace chrono_detail
7071
{
7172
boost::winapi::DWORD_ cause =
7273
((nanosecs_per_tic <= 0.0L)
73-
? ERROR_NOT_SUPPORTED
74+
? boost::winapi::ERROR_NOT_SUPPORTED_
7475
: boost::winapi::GetLastError());
7576
if (::boost::chrono::is_throws(ec)) {
7677
boost::throw_exception(

0 commit comments

Comments
 (0)