[llvm] r186092 - Looks like some versions of mingw don't have errno_t. Use int.
Rafael Espindola
rafael.espindola at gmail.com
Thu Jul 11 08:47:05 PDT 2013
Author: rafael
Date: Thu Jul 11 10:47:04 2013
New Revision: 186092
URL: http://llvm.org/viewvc/llvm-project?rev=186092&view=rev
Log:
Looks like some versions of mingw don't have errno_t. Use int.
Modified:
llvm/trunk/lib/Support/Windows/TimeValue.inc
Modified: llvm/trunk/lib/Support/Windows/TimeValue.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/TimeValue.inc?rev=186092&r1=186091&r2=186092&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/TimeValue.inc (original)
+++ llvm/trunk/lib/Support/Windows/TimeValue.inc Thu Jul 11 10:47:04 2013
@@ -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];
More information about the llvm-commits
mailing list