aboutsummaryrefslogtreecommitdiff
path: root/src/iem16_table.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-04-29 10:24:20 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-04-29 10:24:20 +0000
commit82265a69b891a0ec4faea74429fae35f90a3c106 (patch)
tree7e9a7cbee06dba2c339f6d797566f96b33aeb863 /src/iem16_table.c
parent7c61fd5a813f5bb314676a842ac351f28f9aa2d8 (diff)
more on the road to M$
svn path=/trunk/externals/iem16/; revision=7616
Diffstat (limited to 'src/iem16_table.c')
-rw-r--r--src/iem16_table.c8
1 files changed, 7 insertions, 1 deletions
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 <string.h>
#include <stdio.h> /* 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;