Fix:Core:g_time_val_to_iso8601 not available on older glibs
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 7 Jun 2011 16:18:14 +0000 (16:18 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 7 Jun 2011 16:18:14 +0000 (16:18 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4512 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/util.c

index 45faa73..cbb42f1 100644 (file)
@@ -333,11 +333,6 @@ char *
 current_to_iso8601(void)
 {
        char *timep=NULL;
-#ifdef HAVE_GLIB
-       GTimeVal time; 
-       g_get_current_time(&time); 
-       timep = g_time_val_to_iso8601(&time);
-#else
 #ifdef HAVE_API_WIN32_BASE
        SYSTEMTIME ST;
        GetSystemTime(&ST);
@@ -353,7 +348,6 @@ current_to_iso8601(void)
                timep=g_strdup(buffer); 
        }
 #endif
-#endif
        return timep;
 }