mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Fix UnifiedTime collision
Win32's GetCurrentTime and plUnifiedTime::GetCurrentTime collided. Rather than hacking around the solution by undefining GetCurrentTime, we rename plUnifiedTime::GetCurrentTime to plUnifiedTime::GetCurrent. This fix is less fiddly than an undef hack.
This commit is contained in:
@ -812,7 +812,7 @@ bool plStatusLog::IPrintLineToFile( const char *line, uint32_t count )
|
||||
}
|
||||
if ( fFlags & kTimestampGMT )
|
||||
{
|
||||
snprintf(work, arrsize(work), "(%s) ", plUnifiedTime::GetCurrentTime().Format("%m/%d %H:%M:%S UTC").c_str());
|
||||
snprintf(work, arrsize(work), "(%s) ", plUnifiedTime::GetCurrent().Format("%m/%d %H:%M:%S UTC").c_str());
|
||||
strncat(buf, work, arrsize(work));
|
||||
}
|
||||
if ( fFlags & kTimeInSeconds )
|
||||
|
Reference in New Issue
Block a user