mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
a0b4fb6047
PR: ports/69248 Submitted by: Juergen Lock <nox@jelal.kn-bremen.de>
20 lines
591 B
Plaintext
20 lines
591 B
Plaintext
Index: Windows/Time.h
|
|
@@ -41,7 +41,7 @@
|
|
fileTime.dwHighDateTime = DWORD(ll >> 32);
|
|
}
|
|
|
|
-inline bool FileTimeToUnixTime(const FILETIME &fileTime, long &unixTime)
|
|
+inline bool FileTimeToUnixTime(const FILETIME &fileTime, time_t &unixTime)
|
|
{
|
|
UINT64 winTime = (((UINT64)fileTime.dwHighDateTime) << 32) + fileTime.dwLowDateTime;
|
|
if (winTime < kUnixTimeStartValue)
|
|
@@ -49,7 +49,7 @@
|
|
winTime = (winTime - kUnixTimeStartValue) / kNumTimeQuantumsInSecond;
|
|
if (winTime >= 0xFFFFFFFF)
|
|
return false;
|
|
- unixTime = (long)winTime;
|
|
+ unixTime = (time_t)winTime;
|
|
return true;
|
|
}
|
|
|