Looks like some versions of mingw don't have errno_t. Use int.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2013-07-11 15:47:04 +00:00
parent 318b7cc7f1
commit 978e17e15d

View File

@ -33,7 +33,7 @@ TimeValue TimeValue::now() {
std::string TimeValue::str() const {
struct tm LT;
__time64_t OurTime = this->toEpochTime();
errno_t Error = ::_localtime64_s(&LT, &OurTime);
int Error = ::_localtime64_s(&LT, &OurTime);
assert(!Error);
char Buffer[25];