Various cleanups and fixes due to feedback

This commit is contained in:
leak
2014-06-22 16:29:49 +02:00
parent ca3327dbed
commit bfcbde1c97
5 changed files with 11 additions and 14 deletions

View File

@@ -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)
{