Ticket #49820: patch-gsl.cc.diff

File patch-gsl.cc.diff, 827 bytes (added by Schamschula (Marius Schamschula), 9 years ago)
  • gsl.cc

    old new  
    2727#include <gsl/gsl_rng.h>
    2828#include <gsl/gsl_randist.h>
    2929#include <gsl/gsl_cdf.h>
     30#include <gsl/gsl_version.h>
    3031
    3132#include "opsymbols.h"
    3233
     
    10881089  addGSLDOUBLE2Func<gsl_sf_ellint_F>(SYM(F));
    10891090  addGSLDOUBLE2Func<gsl_sf_ellint_E>(SYM(E));
    10901091  addGSLDOUBLE3Func<gsl_sf_ellint_P>(SYM(P),SYM(phi),SYM(k),SYM(n));
     1092#if GSL_MAJOR_VERSION >= 2
     1093  addGSLDOUBLE2Func<gsl_sf_ellint_D>(SYM(D),SYM(phi),SYM(k));
     1094#else 
    10911095  addGSLDOUBLE3Func<gsl_sf_ellint_D>(SYM(D),SYM(phi),SYM(k),SYM(n));
     1096#endif 
    10921097  addGSLDOUBLE2Func<gsl_sf_ellint_RC>(SYM(RC),SYM(x),SYM(y));
    10931098  addGSLDOUBLE3Func<gsl_sf_ellint_RD>(SYM(RD),SYM(x),SYM(y),SYM(z));
    10941099  addGSLDOUBLE3Func<gsl_sf_ellint_RF>(SYM(RF),SYM(x),SYM(y),SYM(z));