aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2004-12-16 04:06:56 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2004-12-16 04:06:56 +0000
commitb8b836d019f3673d03fcd90c5129f828afda654e (patch)
tree789b14f28f0e6acdbb2627a019add85dcdf9260b /lib/System
parent34717e114a46fe19a3bd0dedbd8bb307a2e23b39 (diff)
downloadexternal_llvm-b8b836d019f3673d03fcd90c5129f828afda654e.zip
external_llvm-b8b836d019f3673d03fcd90c5129f828afda654e.tar.gz
external_llvm-b8b836d019f3673d03fcd90c5129f828afda654e.tar.bz2
Expository comment submitted by Henrik Bach
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Win32/TimeValue.cpp3
-rw-r--r--lib/System/Win32/TimeValue.inc3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/System/Win32/TimeValue.cpp b/lib/System/Win32/TimeValue.cpp
index de8f267..34a5df1 100644
--- a/lib/System/Win32/TimeValue.cpp
+++ b/lib/System/Win32/TimeValue.cpp
@@ -32,6 +32,9 @@ TimeValue TimeValue::now() {
std::string TimeValue::toString() const {
#ifdef __MINGW
+ // This ban may be lifted by either:
+ // (i) a future MinGW version other than 1.0 inherents the __time64_t type, or
+ // (ii) configure tests for either the time_t or __time64_t type.
time_t ourTime = time_t(this->toEpochTime());
struct tm *lt = ::localtime(&ourTime);
#else
diff --git a/lib/System/Win32/TimeValue.inc b/lib/System/Win32/TimeValue.inc
index de8f267..34a5df1 100644
--- a/lib/System/Win32/TimeValue.inc
+++ b/lib/System/Win32/TimeValue.inc
@@ -32,6 +32,9 @@ TimeValue TimeValue::now() {
std::string TimeValue::toString() const {
#ifdef __MINGW
+ // This ban may be lifted by either:
+ // (i) a future MinGW version other than 1.0 inherents the __time64_t type, or
+ // (ii) configure tests for either the time_t or __time64_t type.
time_t ourTime = time_t(this->toEpochTime());
struct tm *lt = ::localtime(&ourTime);
#else