From 64e50f15e4a4fb6ffcd2aa3774f1b0dde990e99f Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Mon, 6 Apr 2009 22:29:34 +0000 Subject: update 2geom. big commit as it has been a while. (2geom svn rev. 1870, i think) i turned some optional compilation stuff *on* per default, to help building inkscape. (bzr r7638) --- src/2geom/poly.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/2geom/poly.cpp') diff --git a/src/2geom/poly.cpp b/src/2geom/poly.cpp index 30ec1cdb7..d8b379557 100644 --- a/src/2geom/poly.cpp +++ b/src/2geom/poly.cpp @@ -1,8 +1,9 @@ #include <2geom/poly.h> -//#ifdef HAVE_GSL +#define HAVE_GSL +#ifdef HAVE_GSL #include -//#endif +#endif namespace Geom { @@ -38,7 +39,7 @@ void Poly::monicify() { } -//#ifdef HAVE_GSL +#ifdef HAVE_GSL std::vector > solve(Poly const & pp) { Poly p(pp); p.normalize(); @@ -75,7 +76,7 @@ std::vector solve_reals(Poly const & p) { } return real_roots; } -//#endif +#endif double polish_root(Poly const & p, double guess, double tol) { Poly dp = derivative(p); -- cgit v1.2.3