diff options
author | cls%seawood.org <devnull@localhost> | 1999-07-09 11:14:55 +0000 |
---|---|---|
committer | cls%seawood.org <devnull@localhost> | 1999-07-09 11:14:55 +0000 |
commit | fd32d905bb91f3a73a2a123e578478ee6319a041 (patch) | |
tree | 357f9d5f48bab133eec42b5f5325a65f05bfcfa6 | |
parent | 8de5935708c58533b6ba4f86f4b1e757e2abda70 (diff) | |
download | nspr-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.c | 8 |
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. */ |