Fix ctime(&rstime_t) error on windows

rstime_t not neccesary in those cases so use plain time_t instead
This commit is contained in:
Gioacchino Mazzurco 2018-10-07 13:41:04 +02:00
parent 77d938bf52
commit ddf3164545
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
3 changed files with 3 additions and 3 deletions

View file

@ -148,7 +148,7 @@ void rslog(const RsLog::logLvl lvl, RsLog::logInfo *info, const std::string &msg
{
RS_STACK_MUTEX(logMtx);
rstime_t t = time(NULL);
time_t t = time(NULL); // Don't use rstime_t here or ctime break on windows
if (debugMode == RS_DEBUG_LOGCRASH)
{