From: Rafael Espindola Date: Thu, 11 Jul 2013 15:47:04 +0000 (+0000) Subject: Looks like some versions of mingw don't have errno_t. Use int. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60;p=oota-llvm.git 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 --- diff --git a/lib/Support/Windows/TimeValue.inc b/lib/Support/Windows/TimeValue.inc index 32983be883f..f52af98d29f 100644 --- a/lib/Support/Windows/TimeValue.inc +++ b/lib/Support/Windows/TimeValue.inc @@ -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(<, &OurTime); + int Error = ::_localtime64_s(<, &OurTime); assert(!Error); char Buffer[25];