From 82265a69b891a0ec4faea74429fae35f90a3c106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sun, 29 Apr 2007 10:24:20 +0000 Subject: more on the road to M$ svn path=/trunk/externals/iem16/; revision=7616 --- src/iem16_table.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/iem16_table.c') diff --git a/src/iem16_table.c b/src/iem16_table.c index a941f0c..91d9fc6 100644 --- a/src/iem16_table.c +++ b/src/iem16_table.c @@ -12,6 +12,11 @@ #include #include /* for read/write to files */ +#if (defined(_MSC_VER) && (_MSC_VER > 600)) +# define fdopen(fd,type) _fdopen(fd,type) +#endif + + static int am_bigendian(void){ /* actually this should be in m_pd.h */ unsigned short s = 1; @@ -170,7 +175,8 @@ static void table16_read16(t_table16 *x, t_symbol *filename, t_symbol *endian, if ((filedesc = open_via_path( canvas_getdir(x->x_canvas)->s_name, filename->s_name, "", buf, &bufptr, MAXPDSTRING, 1)) < 0 - || !(fd = fdopen(filedesc, BINREADMODE))) + || !(fd = fdopen(filedesc, BINREADMODE)) + ) { error("%s: can't open", filename->s_name); return; -- cgit v1.2.1