diff src/of-netcdf-1-octave-9-compat.patch @ 6538:8e1e1a000deb

of-netcdf: Fix compatibility with Octave 9. * src/of-netcdf-1-octave-9-compat.patch: Add patch that replaces class that has been deprecated in Octave 7 and removed from Octave 9. * dist-files.mk: Add new file to list.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 19 Nov 2022 12:54:37 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/of-netcdf-1-octave-9-compat.patch	Sat Nov 19 12:54:37 2022 +0100
@@ -0,0 +1,11 @@
+--- netcdf-1.0.16/src/__netcdf__.cc.orig	2022-09-16 14:04:58.000000000 +0200
++++ netcdf-1.0.16/src/__netcdf__.cc	2022-11-19 12:49:12.924877148 +0100
+@@ -1298,7 +1298,7 @@
+ 
+   int ncid = args(0).scalar_value();
+   int varid = args(1).scalar_value ();
+-  std::list<Range> ranges;
++  std::list<octave::range<double>> ranges;
+   int ndims;
+   octave_value data;
+   nc_type xtype, basetype;