=== modified file 'lib/arrows.c' --- lib/arrows.c 2007-10-06 20:06:42 +0000 +++ lib/arrows.c 2008-12-05 08:56:35 +0000 @@ -21,25 +21,19 @@ #include #include #include -#include #include "message.h" #include "boundingbox.h" -#ifdef G_OS_WIN32 -#include -#define finite(d) _finite(d) -#endif - -#ifdef __EMX__ -#define finite(d) isfinite(d) -#endif - #include "arrows.h" #include "diarenderer.h" #include "attributes.h" #include "widgets.h" #include "intl.h" +#ifndef isfinite +# define isfinite(x) ((x)*0 == 0) +#endif + /**** prototypes ****/ static void draw_empty_ellipse(DiaRenderer *renderer, Point *to, Point *from, @@ -419,7 +413,7 @@ else { vl.x = 1.0; vl.y = 0.0; } - if (!finite(vl.x)) { + if (!isfinite(vl.x)) { vl.x = 1.0; vl.y = 0.0; } point_get_perp(&vt,&vl); @@ -496,7 +490,7 @@ else { vl.x = 1.0; vl.y = 0.0; } - if (!finite(vl.x)) { + if (!isfinite(vl.x)) { vl.x = 1.0; vl.y = 0.0; } point_get_perp(&vt,&vl); @@ -608,7 +602,7 @@ else { vl.x = 1.0; vl.y = 0.0; } - if (!finite(vl.x)) { + if (!isfinite(vl.x)) { vl.x = 1.0; vl.y = 0.0; } point_get_perp(&vt,&vl); @@ -670,7 +664,7 @@ else { vl.x = 1.0; vl.y = 0.0; } - if (!finite(vl.x)) { + if (!isfinite(vl.x)) { vl.x = 1.0; vl.y = 0.0; } @@ -716,7 +710,7 @@ else { vl.x = 1.0; vl.y = 0.0; } - if (!finite(vl.x)) { + if (!isfinite(vl.x)) { vl.x = 1.0; vl.y = 0.0; } point_get_perp(&vt,&vl); @@ -830,7 +824,7 @@ else { vl.x = 1.0; vl.y = 0.0; } - if (!finite(vl.x)) { + if (!isfinite(vl.x)) { vl.x = 1.0; vl.y = 0.0; } point_get_perp(&vt,&vl); @@ -906,7 +900,7 @@ else { vl.x = 1.0; vl.y = 0.0; } - if (!finite(vl.x)) { + if (!isfinite(vl.x)) { vl.x = 1.0; vl.y = 0.0; } point_get_perp(&vt,&vl); @@ -944,7 +938,7 @@ else { vl.x = 1.0; vl.y = 0.0; } - if (!finite(vl.x)) { + if (!isfinite(vl.x)) { vl.x = 1.0; vl.y = 0.0; } point_get_perp(&vt,&vl);