diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2007-06-01 00:23:51 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2007-06-01 00:23:51 +0000 |
commit | 92dbe29cbb5e95d5a6b4a455341d444193a9e9e6 (patch) | |
tree | 42636592e53d17521082b04e1a7dca0bb0d63f5f /time | |
parent | e9fc4f6248f26c5a26b1f939bc47b2b38e3b5b48 (diff) | |
download | apr-92dbe29cbb5e95d5a6b4a455341d444193a9e9e6.tar.gz |
The implementation of apr_time_clock_hires calls SetTimerResolution which is not
implemented on WinCE. The Unix implementation of this function is a no-op. The
attached patch makes the implementation a no-op for WinCE.
PR: 39857
Submitted by: Curt Arnold <carnold apache.org>
Reviewed by: Davi Arnaut
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@543337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r-- | time/win32/time.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/time/win32/time.c b/time/win32/time.c index c3165a72c..6f9545c3f 100644 --- a/time/win32/time.c +++ b/time/win32/time.c @@ -304,7 +304,13 @@ APR_DECLARE(void) apr_sleep(apr_interval_time_t t) Sleep((DWORD)(t / 1000)); } - +#if defined(_WIN32_WCE) +/* A noop on WinCE, like Unix implementation */ +APR_DECLARE(void) apr_time_clock_hires(apr_pool_t *p) +{ + return; +} +#else static apr_status_t clock_restore(void *unsetres) { ULONG newRes; @@ -324,3 +330,4 @@ APR_DECLARE(void) apr_time_clock_hires(apr_pool_t *p) apr_pool_cleanup_null); } } +#endif |