diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-27 13:45:23 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-27 13:45:23 +0000 |
commit | bf6938b08beac71bf7ea266086fc1dcbd8927587 (patch) | |
tree | 0bf662aa6167e9d13830f427bbd9f9c8b5d5bf96 /navit/util.c | |
parent | aeea3f9fe0ebe8105b749bbc97cd379e711f229b (diff) | |
download | navit-bf6938b08beac71bf7ea266086fc1dcbd8927587.tar.gz |
Fix:Core:Made compileable for wince again
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2417 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/util.c')
-rw-r--r-- | navit/util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/navit/util.c b/navit/util.c index 73742ae19..7116d61cd 100644 --- a/navit/util.c +++ b/navit/util.c @@ -295,6 +295,11 @@ current_to_iso8601(void) g_get_current_time(&time); timep = g_time_val_to_iso8601(&time); #else +#ifdef HAVE_API_WIN32_BASE + SYSTEMTIME ST; + GetSystemTime(&ST); + timep=g_strdup_printf("%d-%02d-%02dT%02d:%02d:%02dZ",ST.wYear,ST.wMonth,ST.wDay,ST.wHour,ST.wMinute,ST.wSecond); +#else time_t tnow; struct tm *tm; tnow = time(0); @@ -304,5 +309,6 @@ current_to_iso8601(void) timep=g_strdup(buffer); } #endif +#endif return timep; } |