From 92dbe29cbb5e95d5a6b4a455341d444193a9e9e6 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 1 Jun 2007 00:23:51 +0000 Subject: 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 Reviewed by: Davi Arnaut git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@543337 13f79535-47bb-0310-9956-ffa450edef68 --- time/win32/time.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'time') 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 -- cgit v1.2.1