From 978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 11 Jul 2013 15:47:04 +0000 Subject: 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 --- lib/Support/Windows/TimeValue.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Support/Windows/TimeValue.inc b/lib/Support/Windows/TimeValue.inc index 32983be883..f52af98d29 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]; -- cgit v1.2.3