summaryrefslogtreecommitdiffstats
path: root/src/2geom/poly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/poly.cpp')
-rw-r--r--src/2geom/poly.cpp9
1 files changed, 5 insertions, 4 deletions
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 <gsl/gsl_poly.h>
-//#endif
+#endif
namespace Geom {
@@ -38,7 +39,7 @@ void Poly::monicify() {
}
-//#ifdef HAVE_GSL
+#ifdef HAVE_GSL
std::vector<std::complex<double> > solve(Poly const & pp) {
Poly p(pp);
p.normalize();
@@ -75,7 +76,7 @@ std::vector<double > solve_reals(Poly const & p) {
}
return real_roots;
}
-//#endif
+#endif
double polish_root(Poly const & p, double guess, double tol) {
Poly dp = derivative(p);