Core:Fix:Make vehicle.c compile on non win32 platforms without glib
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 22 Oct 2008 07:40:44 +0000 (07:40 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 22 Oct 2008 07:40:44 +0000 (07:40 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1530 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/vehicle.c

index ceef666..2dc21ed 100644 (file)
@@ -53,7 +53,7 @@ vehicle_log_gpx(struct vehicle *this_, struct log *log)
 {
        struct attr pos_attr;
        char buffer[256];
-#ifndef __CEGCC__
+#ifdef HAVE_GLIB
        GTimeVal time; 
        g_get_current_time(&time); 
 #endif
@@ -62,7 +62,7 @@ vehicle_log_gpx(struct vehicle *this_, struct log *log)
                return;
        if (!this_->meth.position_attr_get(this_->priv, attr_position_coord_geo, &pos_attr))
                return;
-#ifndef __CEGCC__
+#ifdef HAVE_GLIB
        sprintf(buffer,"<trkpt lat=\"%f\" lon=\"%f\">\n\t<time>%s</time>\n</trkpt>\n",
                pos_attr.u.coord_geo->lat, pos_attr.u.coord_geo->lng, g_time_val_to_iso8601(&time));
 #else