From: zer0 Date: Sat, 9 Jan 2010 16:36:45 +0000 (+0100) Subject: compilation workaround X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a875ac1ccbff0fa41013996ec6d50d4b78f53d01;p=aversive.git compilation workaround --- diff --git a/modules/base/math/geometry/vect_base.c b/modules/base/math/geometry/vect_base.c index 2fb8563..9ea271d 100755 --- a/modules/base/math/geometry/vect_base.c +++ b/modules/base/math/geometry/vect_base.c @@ -59,12 +59,12 @@ vect_pvect_sign(vect_t *v, vect_t *w) return z>0?1:-1; } -float norm(float x1, float y1, float x2, float y2) -{ - float x = x2 - x1; - float y = y2 - y1; - return sqrt(x*x + y*y); -} +/* float norm(float x1, float y1, float x2, float y2) */ +/* { */ +/* float x = x2 - x1; */ +/* float y = y2 - y1; */ +/* return sqrt(x*x + y*y); */ +/* } */ float pt_norm(point_t *p1, point_t *p2) { diff --git a/modules/base/math/geometry/vect_base.h b/modules/base/math/geometry/vect_base.h index b511e07..e46c840 100755 --- a/modules/base/math/geometry/vect_base.h +++ b/modules/base/math/geometry/vect_base.h @@ -49,7 +49,7 @@ int8_t vect_pvect_sign(vect_t *v, vect_t *w); /* norm of a vector */ -float norm(float x1, float y1, float x2, float y2); +//float norm(float x1, float y1, float x2, float y2); float pt_norm(point_t *p1, point_t *p2); float vect_norm(vect_t *v); void vect_rot_trigo(vect_t *v);