From eeb32b40141de7f82f4201a608103ef7bc4279b5 Mon Sep 17 00:00:00 2001 From: vitaut Date: Mon, 16 Nov 2015 17:45:41 -0800 Subject: [PATCH] Fix compilation with GSL 2 which dropped the unused third argument 'n' in gsl_sf_ellint_D. Thanks to https://github.com/opoplawski. --- src/gsl/amplgsl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gsl/amplgsl.c b/src/gsl/amplgsl.c index b6b6ad80f..f03afec3c 100644 --- a/src/gsl/amplgsl.c +++ b/src/gsl/amplgsl.c @@ -1490,7 +1490,13 @@ static double amplgsl_sf_ellint_E(arglist *al) { } WRAP_CHECKED(gsl_sf_ellint_P, ARGS3_PREC) + +#if GSL_MAJOR_VERSION >= 2 +WRAP_CHECKED(gsl_sf_ellint_D, ARGS2_PREC) +#else WRAP_CHECKED(gsl_sf_ellint_D, ARGS3_PREC) +#endif + WRAP_CHECKED(gsl_sf_ellint_RC, ARGS2_PREC) WRAP_CHECKED(gsl_sf_ellint_RD, ARGS3_PREC) WRAP_CHECKED(gsl_sf_ellint_RF, ARGS3_PREC)