Examples: fix compilation due to inline
Undefined references were occurring on inline (not static) functions. Adding static to these functions solves the issue.
This commit is contained in:
parent
87382a2dad
commit
8c4c825e4d
|
@ -66,7 +66,7 @@ Bezier bezierFromPoints(Point p1, Point p2,
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
static inline void
|
||||||
parameterSplitLeft(Bezier *b, float t, Bezier *left)
|
parameterSplitLeft(Bezier *b, float t, Bezier *left)
|
||||||
{
|
{
|
||||||
left->x1 = b->x1;
|
left->x1 = b->x1;
|
||||||
|
@ -104,7 +104,7 @@ Bezier bezierOnInterval(Bezier *b, float t0, float t1)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
static inline void
|
||||||
_bezier_coefficients(float t, float *ap, float *bp, float *cp, float *dp)
|
_bezier_coefficients(float t, float *ap, float *bp, float *cp, float *dp)
|
||||||
{
|
{
|
||||||
float a,b,c,d;
|
float a,b,c,d;
|
||||||
|
|
Loading…
Reference in New Issue