File mathgl-gsl-deprecated-code-usage.patch of Package mathgl

Index: mathgl-2.1.3.1/src/fft.cpp
===================================================================
--- mathgl-2.1.3.1.orig/src/fft.cpp
+++ mathgl-2.1.3.1/src/fft.cpp
@@ -82,7 +82,7 @@ void MGL_EXPORT mgl_fft_free(void *wt, v
 void MGL_EXPORT mgl_fft(double *x, long s, long n, const void *wt, void *ws, bool inv)
 {
 #if MGL_HAVE_GSL
-gsl_fft_complex_transform(x, s, n, (const gsl_fft_complex_wavetable*)wt, (gsl_fft_complex_workspace*)ws, inv?backward:forward);
+gsl_fft_complex_transform(x, s, n, (const gsl_fft_complex_wavetable*)wt, (gsl_fft_complex_workspace*)ws, inv?gsl_fft_backward:gsl_fft_forward);
 #else	// NOTE this is VERY slow!
 	const double *c = (const double *)wt;
 	double *d = (double *)ws, f = inv?1./n:1;
openSUSE Build Service is sponsored by