mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 23:26:37 +01:00
Core: Fix build for msvc14
This commit is contained in:
@@ -393,7 +393,12 @@ class ByteBuffer
|
||||
lt.tm_mon = (packedDate >> 20) & 0xF;
|
||||
lt.tm_year = ((packedDate >> 24) & 0x1F) + 100;
|
||||
|
||||
// To-Do: find a better way here
|
||||
#if !defined(timezone)
|
||||
return uint32(mktime(<) + _timezone);
|
||||
#else
|
||||
return uint32(mktime(<) + timezone);
|
||||
#endif
|
||||
}
|
||||
|
||||
ByteBuffer& ReadPackedTime(uint32& time)
|
||||
|
||||
Reference in New Issue
Block a user