compatibility-chrono.cc (steady_clock::now()): If !_GLIBCXX_USE_GETTIMEOFDAY perform conversion inline instead of calling...
* src/c++11/compatibility-chrono.cc (steady_clock::now()): If !_GLIBCXX_USE_GETTIMEOFDAY perform conversion inline instead of calling non-existent from_time_t. From-SVN: r199391
This commit is contained in:
parent
36536d79af
commit
8b70770dc8
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-05-28 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* src/c++11/compatibility-chrono.cc (steady_clock::now()): If
|
||||
!_GLIBCXX_USE_GETTIMEOFDAY perform conversion inline instead of
|
||||
calling non-existent from_time_t.
|
||||
|
||||
2013-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt:
|
||||
|
|
|
@ -78,7 +78,10 @@ namespace std _GLIBCXX_VISIBILITY(default)
|
|||
+ chrono::microseconds(tv.tv_usec)));
|
||||
#else
|
||||
std::time_t __sec = std::time(0);
|
||||
return system_clock::from_time_t(__sec);
|
||||
// This is the conversion done by system_clock::from_time_t(__sec)
|
||||
typedef chrono::time_point<system_clock, seconds> __from;
|
||||
return time_point_cast<system_clock::duration>
|
||||
(__from(chrono::seconds(__sec)));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue