The following changes have been made in matio to build and work in the
rmatio package

* Stefan Widgren 2014-01-17:
  src/matio/mat4.c (Mat_VarReadNextInfo4): Replaced free(matvar) with
  Mat_VarFree(matvar)

* Stefan Widgren 2014-01-17:
  src/matio/mat.c (Mat_VarFree): Missing free when number of fields
  were equal to zero.

* Stefan Widgren 2014-01-06:
  MATIO_PLATFORM is defined to "rmatio" when building. The define is not
  really used, since rmatio always use the argument hdr_str initialized
  from R with the correct platform when calling Mat_CreateVer

* Stefan Widgren 2014-01-04
  The io routines have been adopted to use R printing and error routines.
  #define Mat_Critical error
  #define Mat_Error error
  src/matio/io.c: Removed
  src/matio/snprintf.c: Removed

* Stefan Widgren 2013-09-16:
  src/matio/mat5.c (WriteCellArrayField): Fix to write struct with empty
  fields. Using matvar internal num_fields to set the variable nfields
  when writing a MAT_C_STRUCT

* Stefan Widgren 2013-09-16:
  src/matio/mat4.c (Read4): Added support to read sparse matrix of double
  and complex data

* Stefan Widgren 2013-09-16:
  src/matio/mat4.c (Mat_VarReadNextInfo4): Check if data is complex when
  reading info for a sparse matrix

* Stefan Widgren 2013-09-16:
  src/matio/mat5.c (GetStructFieldBufSize): Added switch case to handle that
  character data of data_type MAT_T_UINT8 are written as MAT_T_UINT16

* Stefan Widgren 2013-09-16:
  src/matio/mat5.c (WriteCompressedCellArrayField): Fix to write struct with
  empty fields. Using matvar internal num_fields to set the variable nfields
  when writing a MAT_C_STRUCT. Using matvar internal fieldnames instead of
  field name.

* Stefan Widgren 2013-09-16:
  src/matio/mat.c (Mat_PrintNumber): Moved to io.c

* Stefan Widgren 2013-09-16:
  src/matio/mat.c (Mat_VarPrint): Moved to io.c

* Stefan Widgren 2013-09-16:
  The io routines have been adopted to use R printing routines.
  src/matio/read_data.c (ReadCompressedCharData): Call Rprintf instead of printf

* Stefan Widgren 2013-09-16:
  The io routines have been adopted to use R printing routines.
  src/matio/read_data.c (ReadCharData): Call Rprintf instead of printf
