Mercurial > mxe-octave
comparison src/of-netcdf-1.patch @ 6406:7840d246bc1e
* src/of-netcdf-1.patch: add patch for octave 8
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 15 Sep 2022 11:15:43 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6405:e32e81bd98ce | 6406:7840d246bc1e |
---|---|
1 diff --git a/src/__netcdf__.cc b/src/__netcdf__.cc | |
2 index cf177ad..eded926 100644 | |
3 --- a/src/__netcdf__.cc | |
4 +++ b/src/__netcdf__.cc | |
5 @@ -15,9 +15,7 @@ | |
6 | |
7 | |
8 #include <octave/oct.h> | |
9 -#include <octave/ov-cell.h> | |
10 -#include <octave/Array.cc> | |
11 -//#include <octave/Cell.h> | |
12 +#include <octave/Array.h> | |
13 | |
14 #include <netcdf.h> | |
15 | |
16 @@ -1227,14 +1225,14 @@ The data @var{data} is stored in the variable @var{varid} of the NetCDF file @va | |
17 break; \ | |
18 } | |
19 | |
20 - OV_NETCDF_PUT_VARA(NC_BYTE, signed char, int8_array_value) | |
21 - OV_NETCDF_PUT_VARA(NC_UBYTE, unsigned char, uint8_array_value) | |
22 - OV_NETCDF_PUT_VARA(NC_SHORT, short, int16_array_value) | |
23 - OV_NETCDF_PUT_VARA(NC_USHORT, unsigned short, uint16_array_value) | |
24 - OV_NETCDF_PUT_VARA(NC_INT, int, int32_array_value) | |
25 - OV_NETCDF_PUT_VARA(NC_UINT, unsigned int, uint32_array_value) | |
26 - OV_NETCDF_PUT_VARA(NC_INT64, long long, int64_array_value) | |
27 - OV_NETCDF_PUT_VARA(NC_UINT64, unsigned long long, uint64_array_value) | |
28 + OV_NETCDF_PUT_VARA(NC_BYTE, octave_int8, int8_array_value) | |
29 + OV_NETCDF_PUT_VARA(NC_UBYTE, octave_uint8, uint8_array_value) | |
30 + OV_NETCDF_PUT_VARA(NC_SHORT, octave_int16, int16_array_value) | |
31 + OV_NETCDF_PUT_VARA(NC_USHORT, octave_uint16, uint16_array_value) | |
32 + OV_NETCDF_PUT_VARA(NC_INT, octave_int32, int32_array_value) | |
33 + OV_NETCDF_PUT_VARA(NC_UINT, octave_uint32, uint32_array_value) | |
34 + OV_NETCDF_PUT_VARA(NC_INT64, octave_int64, int64_array_value) | |
35 + OV_NETCDF_PUT_VARA(NC_UINT64, octave_uint64, uint64_array_value) | |
36 OV_NETCDF_PUT_VARA(NC_FLOAT, float, float_array_value) | |
37 OV_NETCDF_PUT_VARA(NC_DOUBLE,double,array_value) | |
38 OV_NETCDF_PUT_VARA(NC_CHAR, char, char_array_value) |