Bugzilla Bug 124695: the implementation of _PR_MD_GET_INTERVAL for MinGW
authorwtchang%redhat.com
Mon, 13 Feb 2006 23:16:53 +0000
changeset 3583 ee903936ef158b759319656706617faff710a22b
parent 3578 61216e60d191f718c78f23e98a7d24ee6f58bbed
child 3587 20a2565c3465f6bd6a7b3ada87524d6d23d13b43
push idunknown
push userunknown
push dateunknown
bugs124695
Bugzilla Bug 124695: the implementation of _PR_MD_GET_INTERVAL for MinGW was wrong. Thanks to Stefan Sitter <ssitter@googlemail.com> for reporting the bug and verifying the fix.
pr/src/md/windows/ntinrval.c
--- a/pr/src/md/windows/ntinrval.c
+++ b/pr/src/md/windows/ntinrval.c
@@ -45,22 +45,16 @@
 void
 _PR_MD_INTERVAL_INIT()
 {
 }
 
 PRIntervalTime 
 _PR_MD_GET_INTERVAL()
 {
-#if defined(__MINGW32__)
-    return time();
-#elif defined(WIN16)
-    return clock();        /* milliseconds since application start */
-#else
     return timeGetTime();  /* milliseconds since system start */
-#endif
 }
 
 PRIntervalTime 
 _PR_MD_INTERVAL_PER_SEC()
 {
     return 1000;
 }