diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-11 15:47:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-11 15:47:04 +0000 |
commit | bce399216c1a02cd04dc582dbf79bd7f5e859b98 (patch) | |
tree | 15e3191a835d28c19ec3fb14e37dddbeaf17c579 | |
parent | cce97be70b1e0ebbf0d84f1a45372c6f1e316ca0 (diff) | |
download | bcm5719-llvm-bce399216c1a02cd04dc582dbf79bd7f5e859b98.tar.gz bcm5719-llvm-bce399216c1a02cd04dc582dbf79bd7f5e859b98.zip |
Looks like some versions of mingw don't have errno_t. Use int.
llvm-svn: 186092
-rw-r--r-- | llvm/lib/Support/Windows/TimeValue.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/TimeValue.inc b/llvm/lib/Support/Windows/TimeValue.inc index 32983be883f..f52af98d29f 100644 --- a/llvm/lib/Support/Windows/TimeValue.inc +++ b/llvm/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]; |