summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:23:51 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 00:23:51 +0000
commitd0f59287272fdde4826d0ed2429abfdd8d314b8c (patch)
tree42636592e53d17521082b04e1a7dca0bb0d63f5f /time
parent2c182f05b59af8afb690a3df43fa6eabe63e987d (diff)
downloadlibapr-d0f59287272fdde4826d0ed2429abfdd8d314b8c.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: http://svn.apache.org/repos/asf/apr/apr/trunk@543337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-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 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