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 | 978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60 (patch) | |
tree | 42a2dfe688bfd8f86391da0c1813e060ac154523 /lib/Support/Windows/TimeValue.inc | |
parent | 318b7cc7f10d41370929ff93274de29c11f87b81 (diff) | |
download | external_llvm-978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60.zip external_llvm-978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60.tar.gz external_llvm-978e17e15dba3e565a8bf47e4bb0ff1e6a4bda60.tar.bz2 |
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/Support/Windows/TimeValue.inc')
-rw-r--r-- | lib/Support/Windows/TimeValue.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Windows/TimeValue.inc b/lib/Support/Windows/TimeValue.inc index 32983be..f52af98 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]; |