Skip to content

Commit

Permalink
Fix MinGW compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Jan 4, 2016
1 parent a8772cc commit 868ad3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions C-Sources/ModelicaMatIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@

#include "ModelicaUtilities.h"
#if !defined(NO_FILE_SYSTEM)
#if defined(__MINGW32__)
#define __USE_MINGW_ANSI_STDIO 1
#endif
#include <stdarg.h>

/* -------------------------------
Expand Down Expand Up @@ -8950,8 +8953,10 @@ static size_t Mat_WriteEmptyVariable5(mat_t *mat,const char *name,int rank,
#if defined(HAVE_ZLIB)
static size_t WriteCompressedCharData(mat_t *mat,z_stream *z,void *data,int N,
enum matio_types data_type);
#if 0
static int WriteCompressedEmptyData(mat_t *mat,z_stream *z,int N,
enum matio_types data_type);
#endif
static size_t WriteCompressedData(mat_t *mat,z_stream *z,void *data,int N,
enum matio_types data_type);
static size_t WriteCompressedCellArrayField(mat_t *mat,matvar_t *matvar,
Expand Down Expand Up @@ -12374,6 +12379,7 @@ WriteEmptyData(mat_t *mat,int N,enum matio_types data_type)
}

#if defined(HAVE_ZLIB)
#if 0
static int
WriteCompressedEmptyData(mat_t *mat,z_stream *z,int N,
enum matio_types data_type)
Expand Down Expand Up @@ -12528,6 +12534,7 @@ WriteCompressedEmptyData(mat_t *mat,z_stream *z,int N,
return byteswritten;
}
#endif
#endif

/** @if mat_devman
* @param Writes a 2-D slab of data to the MAT file
Expand Down

0 comments on commit 868ad3f

Please sign in to comment.