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/configure.ac | 1 + src/iem16_array.c | 4 ++-- src/iem16_array_tilde.c | 4 ++-- src/iem16_table.c | 8 +++++++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/configure.ac b/src/configure.ac index 980f56f..e143f99 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -57,6 +57,7 @@ dnl Checks for libraries. dnl Replace `main' with a function in -lc: AC_CHECK_LIB(c, main) AC_CHECK_LIB(crtdll, fclose) +AC_CHECK_LIB(coldname, fdopen) dnl Replace `main' with a function in -lm: AC_CHECK_LIB(m, main) diff --git a/src/iem16_array.c b/src/iem16_array.c index b756d4f..55d3d81 100644 --- a/src/iem16_array.c +++ b/src/iem16_array.c @@ -41,7 +41,7 @@ static void tab16read_set(t_tab16read *x, t_symbol *s){ static void *tab16read_new(t_symbol *s){ t_tab16read *x = (t_tab16read *)pd_new(tab16read_class); x->x_arrayname = s; - outlet_new(&x->x_obj, &s_float); + outlet_new(&x->x_obj, gensym("float")); return (x); } @@ -102,7 +102,7 @@ static void tab16read4_set(t_tab16read4 *x, t_symbol *s){ static void *tab16read4_new(t_symbol *s){ t_tab16read4 *x = (t_tab16read4 *)pd_new(tab16read4_class); x->x_arrayname = s; - outlet_new(&x->x_obj, &s_float); + outlet_new(&x->x_obj, gensym("float")); return (x); } diff --git a/src/iem16_array_tilde.c b/src/iem16_array_tilde.c index f323333..5e120f1 100644 --- a/src/iem16_array_tilde.c +++ b/src/iem16_array_tilde.c @@ -110,7 +110,7 @@ static void *tab16play_tilde_new(t_symbol *s){ x->x_limit = 0; x->x_arrayname = s; outlet_new(&x->x_obj, &s_signal); - x->x_bangout = outlet_new(&x->x_obj, &s_bang); + x->x_bangout = outlet_new(&x->x_obj, gensym("bang")); return (x); } @@ -306,7 +306,7 @@ static void tab16receive_dsp(t_tab16receive *x, t_signal **sp){ static void *tab16receive_new(t_symbol *s){ t_tab16receive *x = (t_tab16receive *)pd_new(tab16receive_class); x->x_arrayname = s; - outlet_new(&x->x_obj, &s_signal); + outlet_new(&x->x_obj, gensym("signal")); return (x); } 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