forked from HowardHinnant/date
Fix CHAR_BIT not found by including climits.
This commit is contained in:
committed by
Howard Hinnant
parent
0f658db2cd
commit
ef6d53595d
5
date.h
5
date.h
@@ -33,6 +33,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <climits>
|
||||||
#if !(__cplusplus >= 201402)
|
#if !(__cplusplus >= 201402)
|
||||||
# include <cmath>
|
# include <cmath>
|
||||||
#endif
|
#endif
|
||||||
@@ -4665,10 +4666,10 @@ to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
|
|||||||
auto d = static_cast<int>(static_cast<unsigned>(fds.ymd.day()));
|
auto d = static_cast<int>(static_cast<unsigned>(fds.ymd.day()));
|
||||||
if (d < 10)
|
if (d < 10)
|
||||||
os << ' ';
|
os << ' ';
|
||||||
os << d << ' '
|
os << d << ' '
|
||||||
<< make_time(duration_cast<seconds>(fds.tod.to_duration()))
|
<< make_time(duration_cast<seconds>(fds.tod.to_duration()))
|
||||||
<< ' ' << fds.ymd.year();
|
<< ' ' << fds.ymd.year();
|
||||||
|
|
||||||
}
|
}
|
||||||
else // *fmt == 'x'
|
else // *fmt == 'x'
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user