diff options
author | Daniel Heckenberg <dheck@users.sourceforge.net> | 2003-03-09 11:10:53 +0000 |
---|---|---|
committer | Daniel Heckenberg <dheck@users.sourceforge.net> | 2003-03-09 11:10:53 +0000 |
commit | a2d37998c5ea1c5712cb15d9d9ad885371ee4b5d (patch) | |
tree | 989e6f7306ad5beaf44756c0c45cbade9957805d /streamout13~.c | |
parent | 23da6252985418ada3083303f3847817a23044fb (diff) |
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
Diffstat (limited to 'streamout13~.c')
-rw-r--r-- | streamout13~.c | 13 |
1 files changed, 9 insertions, 4 deletions
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); } |