Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2020-11-22 06:44:35 +0300
committerHoward Trickey <howard.trickey@gmail.com>2020-11-22 06:44:35 +0300
commitd25e116889c221bf5803c8c0e80e36c99ca9278b (patch)
treeca7bed522c05bf043e1e1ff3a17adb1cc5063e95
parentdf8cc5662b9a03fb0cbec05bb9f9bad103b8870b (diff)
Previous commit forgot to guard some things with #ifdef WITH_GMP.
-rw-r--r--source/blender/blenlib/intern/delaunay_2d.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/delaunay_2d.cc b/source/blender/blenlib/intern/delaunay_2d.cc
index ae161fc2d1c..f0b65a55816 100644
--- a/source/blender/blenlib/intern/delaunay_2d.cc
+++ b/source/blender/blenlib/intern/delaunay_2d.cc
@@ -125,7 +125,9 @@ template<typename T> struct FatCo {
vec2<double> abs_approx;
FatCo();
+#ifdef WITH_GMP
FatCo(const vec2<mpq_class> &v);
+#endif
FatCo(const vec2<double> &v);
};
@@ -165,12 +167,14 @@ template<> struct FatCo<double> {
{
}
+#ifdef WITH_GMP
FatCo(const vec2<mpq_class> &v)
{
exact = vec2<double>(v.x.get_d(), v.y.get_d());
approx = exact;
abs_approx = vec2<double>(fabs(approx.x), fabs(approx.y));
}
+#endif
FatCo(const vec2<double> &v)
{