From a875ac1ccbff0fa41013996ec6d50d4b78f53d01 Mon Sep 17 00:00:00 2001 From: zer0 Date: Sat, 9 Jan 2010 17:36:45 +0100 Subject: [PATCH] compilation workaround --- modules/base/math/geometry/vect_base.c | 12 ++++++------ modules/base/math/geometry/vect_base.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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); -- 2.39.5