[BACK]Return to patch-src_gpspoint_c CVS log [TXT][DIR] Up to [local] / ports / geo / viking / patches

File: [local] / ports / geo / viking / patches / Attic / patch-src_gpspoint_c (download)

Revision 1.2, Thu Jun 3 09:09:56 2010 UTC (14 years, 1 month ago) by yason
Branch: MAIN
Changes since 1.1: +5 -18 lines

take patch from NetBSD

$OpenBSD$
--- src/gpspoint.c.orig	Thu Jan 14 23:19:52 2010
+++ src/gpspoint.c	Thu Jun  3 14:30:57 2010
@@ -81,8 +81,8 @@ static gdouble line_altitude = VIK_DEFAULT_ALTITUDE;
 static gboolean line_visible = TRUE;
 
 static gboolean line_extended = FALSE;
-static gdouble line_speed = NAN;
-static gdouble line_course = NAN;
+static gdouble line_speed = __builtin_nanf("");
+static gdouble line_course = __builtin_nanf("");
 static gint line_sat = 0;
 static gint line_fix = 0;
 /* other possible properties go here */