mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Make asctime_r work for HP/UX.
llvm-svn: 19544
This commit is contained in:
parent
9add8dfd15
commit
4e90250e81
@ -25,7 +25,11 @@ std::string TimeValue::toString() const {
|
||||
char buffer[32];
|
||||
|
||||
time_t ourTime = time_t(this->toEpochTime());
|
||||
#ifdef __hpux
|
||||
asctime_r(localtime(&ourTime), buffer);
|
||||
#else
|
||||
::asctime_r(::localtime(&ourTime), buffer);
|
||||
#endif
|
||||
|
||||
std::string result(buffer);
|
||||
return result.substr(0,24);
|
||||
|
Loading…
Reference in New Issue
Block a user