summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-11 15:47:04 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-11 15:47:04 +0000
commit978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60 (patch)
tree42a2dfe688bfd8f86391da0c1813e060ac154523 /lib
parent318b7cc7f10d41370929ff93274de29c11f87b81 (diff)
downloadllvm-978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60.tar.gz
llvm-978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60.tar.bz2
llvm-978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Windows/TimeValue.inc2
1 files changed, 1 insertions, 1 deletions
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(&LT, &OurTime);
+ int Error = ::_localtime64_s(&LT, &OurTime);
assert(!Error);
char Buffer[25];