]> git.pld-linux.org Git - packages/asymptote.git/blob - gsl2.patch
- rebuild with readline 7.0
[packages/asymptote.git] / gsl2.patch
1 Patch from upstream John Bowman to support gsl 2.0
2 ---
3  gsl.cc |    5 +++++
4  1 file changed, 5 insertions(+)
5
6 --- asymptote.orig/gsl.cc
7 +++ asymptote/gsl.cc
8 @@ -27,6 +27,7 @@
9  #include <gsl/gsl_rng.h>
10  #include <gsl/gsl_randist.h>
11  #include <gsl/gsl_cdf.h>
12 +#include <gsl/gsl_version.h>
13  
14  #include "opsymbols.h"
15  
16 @@ -1088,7 +1089,11 @@
17    addGSLDOUBLE2Func<gsl_sf_ellint_F>(SYM(F));
18    addGSLDOUBLE2Func<gsl_sf_ellint_E>(SYM(E));
19    addGSLDOUBLE3Func<gsl_sf_ellint_P>(SYM(P),SYM(phi),SYM(k),SYM(n));
20 +#if GSL_MAJOR_VERSION >= 2
21 +  addGSLDOUBLE2Func<gsl_sf_ellint_D>(SYM(D),SYM(phi),SYM(k));
22 +#else
23    addGSLDOUBLE3Func<gsl_sf_ellint_D>(SYM(D),SYM(phi),SYM(k),SYM(n));
24 +#endif 
25    addGSLDOUBLE2Func<gsl_sf_ellint_RC>(SYM(RC),SYM(x),SYM(y));
26    addGSLDOUBLE3Func<gsl_sf_ellint_RD>(SYM(RD),SYM(x),SYM(y),SYM(z));
27    addGSLDOUBLE3Func<gsl_sf_ellint_RF>(SYM(RF),SYM(x),SYM(y),SYM(z));
This page took 0.089114 seconds and 3 git commands to generate.