Various cleanups and fixes due to feedback
This commit is contained in:
1 parent
ca3327dbed
commit
bfcbde1c97
5 files changed
+11
-14
No files matched your search
@@ -139,16 +139,13 @@ void stripLineInvisibleChars(std::string &str)
|
||||
|
||||
}
|
||||
|
||||
#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__))
|
||||
struct tm* localtime_r(const time_t* time, struct tm *result)
|
||||
{
|
||||
#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__))
|
||||
localtime_s(result, time);
|
||||
return result;
|
||||
#else
|
||||
return localtime_r(&time, &result); // POSIX
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
std::string secsToTimeString(uint64 timeInSecs, bool shortText, bool hoursOnly)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user