summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:24:19 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:24:19 +0000
commit329009307dff0eed71137c43a684d2d4e7e75372 (patch)
tree642261ee0241c405e504c4ac6338a07ce7f3bd1a
parent15ee5f3f02ec7be3af515cbf1c31b206e7aaba41 (diff)
downloadlibapr-329009307dff0eed71137c43a684d2d4e7e75372.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 Backport: 543337 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.2.x@543338 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--time/win32/time.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/time/win32/time.c b/time/win32/time.c
index 6a2b2737d..f37549cef 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