Index: trunk/src_3rd/libcdtr/cdt.h =================================================================== --- trunk/src_3rd/libcdtr/cdt.h (revision 37768) +++ trunk/src_3rd/libcdtr/cdt.h (revision 37769) @@ -33,6 +33,10 @@ #include "edge.h" #include "triangle.h" +#ifndef CDT_INLINE +#define CDT_INLINE static +#endif + typedef struct cdt_s cdt_t; struct cdt_s { @@ -66,7 +70,7 @@ /* TODO: check epsilon for collinear case? */ #define ORIENT_COLLINEAR(a, b, c) (orientation(a, b, c) == 0) #define ORIENT_CCW_CL(a, b, c) (orientation(a, b, c) <= 0) -static inline double orientation(point_t *p1, point_t *p2, point_t *p3) +CDT_INLINE double orientation(point_t *p1, point_t *p2, point_t *p3) { return ((double)p2->pos.y - (double)p1->pos.y) * ((double)p3->pos.x - (double)p2->pos.x) - ((double)p2->pos.x - (double)p1->pos.x) * ((double)p3->pos.y - (double)p2->pos.y); Index: trunk/src_plugins/sketch_route/sketch_route.c =================================================================== --- trunk/src_plugins/sketch_route/sketch_route.c (revision 37768) +++ trunk/src_plugins/sketch_route/sketch_route.c (revision 37769) @@ -55,6 +55,7 @@ #include "ewire_point.h" #include "pointdata.h" #include "spoke.h" +#define CDT_INLINE RND_INLINE #include #include #include