summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcls%seawood.org <devnull@localhost>1999-07-09 11:14:55 +0000
committercls%seawood.org <devnull@localhost>1999-07-09 11:14:55 +0000
commitfd32d905bb91f3a73a2a123e578478ee6319a041 (patch)
tree357f9d5f48bab133eec42b5f5325a65f05bfcfa6
parent8de5935708c58533b6ba4f86f4b1e757e2abda70 (diff)
downloadnspr-hg-unlabeled-3.8.20.tar.gz
Changed i64 to LL at the end of some integers for gcc.unlabeled-3.8.20
-rw-r--r--pr/src/md/windows/w95io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pr/src/md/windows/w95io.c b/pr/src/md/windows/w95io.c
index 0faeaaa9..89333276 100644
--- a/pr/src/md/windows/w95io.c
+++ b/pr/src/md/windows/w95io.c
@@ -32,7 +32,11 @@ struct _MDLock _pr_ioq_lock;
* We store the value in a PRTime variable for convenience.
* This constant is used by _PR_FileTimeToPRTime().
*/
+#if defined(__MINGW32__)
+static const PRTime _pr_filetime_offset = 116444736000000000LL;
+#else
static const PRTime _pr_filetime_offset = 116444736000000000i64;
+#endif
void
_PR_MD_INIT_IO()
@@ -464,7 +468,11 @@ _PR_FileTimeToPRTime(const FILETIME *filetime, PRTime *prtm)
{
PR_ASSERT(sizeof(FILETIME) == sizeof(PRTime));
CopyMemory(prtm, filetime, sizeof(PRTime));
+#if defined(__MINGW32__)
+ *prtm = (*prtm - _pr_filetime_offset) / 10LL;
+#else
*prtm = (*prtm - _pr_filetime_offset) / 10i64;
+#endif
#ifdef DEBUG
/* Doublecheck our calculation. */