summaryrefslogtreecommitdiffstats
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
commitbce399216c1a02cd04dc582dbf79bd7f5e859b98 (patch)
tree15e3191a835d28c19ec3fb14e37dddbeaf17c579
parentcce97be70b1e0ebbf0d84f1a45372c6f1e316ca0 (diff)
downloadbcm5719-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.inc2
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(&LT, &OurTime);
+ int Error = ::_localtime64_s(&LT, &OurTime);
assert(!Error);
char Buffer[25];
OpenPOWER on IntegriCloud