Core: Fix build for msvc14

This commit is contained in:
Vincent-Michael
2014-09-20 05:39:26 +02:00
parent 4e951f9d9b
commit bd522a3853
2 changed files with 7 additions and 0 deletions

View File

@@ -349,6 +349,8 @@ function(_Boost_GUESS_COMPILER_PREFIX _ret)
else()
set (_boost_COMPILER "-il")
endif()
elseif (MSVC14)
set(_boost_COMPILER "-vc140")
elseif (MSVC12)
set(_boost_COMPILER "-vc120")
elseif (MSVC11)

View File

@@ -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(&lt) + _timezone);
#else
return uint32(mktime(&lt) + timezone);
#endif
}
ByteBuffer& ReadPackedTime(uint32& time)