Skip to content

Commit aa1ea1f

Browse files
authored
Fix TDM-GCC compilation (#4617)
1 parent cde55cc commit aa1ea1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modelica/Resources/C-Sources/ModelicaMatIO.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ static int IsEndOfFile(FILE *fp, mat_off_t *fpos);
505505
static int CheckSeekFile(FILE *fp, mat_off_t offset);
506506

507507
/* io.c */
508-
#if defined(_WIN32) && defined(_MSC_VER)
508+
#if defined(_WIN32)
509509
static wchar_t *utf82u(const char *src);
510510
#endif
511511

@@ -1127,10 +1127,10 @@ InflateData(mat_t *mat, z_streamp z, void *buf, unsigned int nBytes)
11271127
/** @file io.c
11281128
* MAT File I/O Utility Functions
11291129
*/
1130-
#if defined(_WIN32) && defined(_MSC_VER)
1130+
#if defined(_WIN32)
11311131
#define WIN32_LEAN_AND_MEAN
11321132
#define NOGDI
1133-
#include <Windows.h>
1133+
#include <windows.h>
11341134
#endif
11351135

11361136
#if !defined(HAVE_VA_COPY) && !defined(va_copy) && defined(HAVE___VA_COPY)

0 commit comments

Comments
 (0)