Files
macports-ports/python/py-gsl/files/patch-src_gslwrap_interpolation2d.i.diff

17 lines
458 B
Diff

diff --git a/src/gslwrap/interpolation2d.i b/src/gslwrap/interpolation2d.i
index 92e607a..696edd0 100644
--- src/gslwrap/interpolation2d.i.orig
+++ src/gslwrap/interpolation2d.i
@@ -29,7 +29,11 @@ static PyObject *module = NULL;
// TODO: pygsl should return -1 on failure here
init_pygsl();
// swig uses a function here ...
+#if SWIG_VERSION >= 0x040400 // SWIG >= 4.4.0
import_array1(-1);
+#else
+ import_array();
+#endif
module = m;
}