From a2d37998c5ea1c5712cb15d9d9ad885371ee4b5d Mon Sep 17 00:00:00 2001 From: Daniel Heckenberg Date: Sun, 9 Mar 2003 11:10:53 +0000 Subject: Minor changes for compilation using Visual C++ 6.0 (SP3) under Windows ncluding: - no array declaration with variable size - fixed signed/unsigned comparison warnings svn path=/trunk/externals/ext13/; revision=460 --- streamout13~.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'streamout13~.c') diff --git a/streamout13~.c b/streamout13~.c index 22ad6f8..95bdfdf 100644 --- a/streamout13~.c +++ b/streamout13~.c @@ -150,7 +150,6 @@ static t_int *streamout13_perform(t_int *w) { t_streamout13* x = (t_streamout13*) (w[1]); int n = (int)(w[2]); - t_float *in[x->x_n]; int i,j,res = 0; int offset = 3; int sent = 0; @@ -158,8 +157,11 @@ static t_int *streamout13_perform(t_int *w) char* buf = (char *)(w[2]); short* cibuf; char* bp; - - +#ifndef NT + t_float *in[x->x_n]; +#else + t_float** in = (t_float**) malloc(x->x_n * sizeof(t_float*)); +#endif for (i=0;i < x->x_n;i++) { in[i] = (t_float *)(w[offset+i]); @@ -261,7 +263,10 @@ static t_int *streamout13_perform(t_int *w) x->blockssincesend++; } } - // post ("b-s-s:%d, length:%d, last:%d, prev:%d",x->blockssincesend,length,*cibuf,prev); + // post ("b-s-s:%d, length:%d, last:%d, prev:%d",x->blockssincesend,length,*cibuf,prev); +#ifdef NT + free(in); +#endif return (w + 2 + i * 2); } -- cgit v1.2.1