mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
17 lines
458 B
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;
|
|
}
|
|
|