Various cleanups and fixes due to feedback

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

No files matched your search

+2 -5
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)
{