diff options
Diffstat (limited to 'time/win32/time.c')
-rw-r--r-- | time/win32/time.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/time/win32/time.c b/time/win32/time.c index a82374918..5f3d5da5f 100644 --- a/time/win32/time.c +++ b/time/win32/time.c @@ -131,7 +131,13 @@ APR_DECLARE(apr_time_t) apr_time_now(void) { LONGLONG aprtime = 0; FILETIME time; +#ifndef _WIN32_WCE GetSystemTimeAsFileTime(&time); +#else + SYSTEMTIME st; + GetSystemTime(&st); + SystemTimeToFileTime(&st, &time); +#endif FileTimeToAprTime(&aprtime, &time); return aprtime; } |