diff --git a/src/path/splinefit/bezier-fit.cpp b/src/path/splinefit/bezier-fit.cpp index 111f538590f7183cf881f5bd993afac3514661fc..ed506da79da94d0f6641bd2186fe432070eb65d5 100644 --- a/src/path/splinefit/bezier-fit.cpp +++ b/src/path/splinefit/bezier-fit.cpp @@ -6,10 +6,8 @@ #include <2geom/bezier-utils.h> #include <2geom/point.h> -extern "C" { - #include "splinefit.h" - #include "splinefont.h" -} +#include "splinefit.h" +#include "splinefont.h" int bezier_fit(Geom::Point bezier[4], const std::vector& data) { diff --git a/src/path/splinefit/splinefit.h b/src/path/splinefit/splinefit.h index 22e21fcdbea6f18854689844c4cde1a837deaf8d..89f830e54879fc2e9aeb92a341890756e50b6ed3 100644 --- a/src/path/splinefit/splinefit.h +++ b/src/path/splinefit/splinefit.h @@ -32,6 +32,8 @@ // #include #include "splinefont.h" +G_BEGIN_DECLS + typedef struct fitpoint { BasePoint p; BasePoint ut; @@ -75,4 +77,7 @@ extern SplinePoint *ApproximateSplineSetFromGen(SplinePoint *from, SplinePoint * bigreal toler, int toler_is_sumsq, GenPointsP genp, void *tok, int order2); + +G_END_DECLS + #endif /* FONTFORGE_SPLINEFIT_H */ diff --git a/src/path/splinefit/splinefont.h b/src/path/splinefit/splinefont.h index 83db934cec41f3d69d79b249e440ef81c25d6381..f8aaaa82b7b988b50feb8b30141f50987e031f37 100644 --- a/src/path/splinefit/splinefont.h +++ b/src/path/splinefit/splinefont.h @@ -5,6 +5,8 @@ #include +G_BEGIN_DECLS + typedef double real; typedef double bigreal; typedef double extended; @@ -188,4 +190,6 @@ enum pconvert_flags { void SplinesRemoveBetween(SplinePoint *from, SplinePoint *to, int type); +G_END_DECLS + #endif // _SEEN_SPLINEFONT_H_