# HG changeset patch # User John Donoghue # Date 1663254943 14400 # Node ID 7840d246bc1ec05f352b22988853874b96f199e0 # Parent e32e81bd98ce3def75d54c15d0c170d0465b9f8d * src/of-netcdf-1.patch: add patch for octave 8 diff -r e32e81bd98ce -r 7840d246bc1e src/of-netcdf-1.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/of-netcdf-1.patch Thu Sep 15 11:15:43 2022 -0400 @@ -0,0 +1,38 @@ +diff --git a/src/__netcdf__.cc b/src/__netcdf__.cc +index cf177ad..eded926 100644 +--- a/src/__netcdf__.cc ++++ b/src/__netcdf__.cc +@@ -15,9 +15,7 @@ + + + #include +-#include +-#include +-//#include ++#include + + #include + +@@ -1227,14 +1225,14 @@ The data @var{data} is stored in the variable @var{varid} of the NetCDF file @va + break; \ + } + +- OV_NETCDF_PUT_VARA(NC_BYTE, signed char, int8_array_value) +- OV_NETCDF_PUT_VARA(NC_UBYTE, unsigned char, uint8_array_value) +- OV_NETCDF_PUT_VARA(NC_SHORT, short, int16_array_value) +- OV_NETCDF_PUT_VARA(NC_USHORT, unsigned short, uint16_array_value) +- OV_NETCDF_PUT_VARA(NC_INT, int, int32_array_value) +- OV_NETCDF_PUT_VARA(NC_UINT, unsigned int, uint32_array_value) +- OV_NETCDF_PUT_VARA(NC_INT64, long long, int64_array_value) +- OV_NETCDF_PUT_VARA(NC_UINT64, unsigned long long, uint64_array_value) ++ OV_NETCDF_PUT_VARA(NC_BYTE, octave_int8, int8_array_value) ++ OV_NETCDF_PUT_VARA(NC_UBYTE, octave_uint8, uint8_array_value) ++ OV_NETCDF_PUT_VARA(NC_SHORT, octave_int16, int16_array_value) ++ OV_NETCDF_PUT_VARA(NC_USHORT, octave_uint16, uint16_array_value) ++ OV_NETCDF_PUT_VARA(NC_INT, octave_int32, int32_array_value) ++ OV_NETCDF_PUT_VARA(NC_UINT, octave_uint32, uint32_array_value) ++ OV_NETCDF_PUT_VARA(NC_INT64, octave_int64, int64_array_value) ++ OV_NETCDF_PUT_VARA(NC_UINT64, octave_uint64, uint64_array_value) + OV_NETCDF_PUT_VARA(NC_FLOAT, float, float_array_value) + OV_NETCDF_PUT_VARA(NC_DOUBLE,double,array_value) + OV_NETCDF_PUT_VARA(NC_CHAR, char, char_array_value)