fixed-point version of the high-pass seems to work now.
[speexdsp.git] / libspeex / stack_alloc.h
index 39f5611..cb048fa 100644 (file)
 #define STACK_ALLOC_H
 
 #ifdef USE_ALLOCA
+#ifdef WIN32
+#include <malloc.h>
+#else
 #include <alloca.h>
 #endif
+#endif
 
 /**
  * @def ALIGN(stack, size)
 #define ALLOC(var, size, type) type var[size]
 #elif defined(USE_ALLOCA)
 #define VARDECL(var) var
-#define ALLOC(var, size, type) var = alloca(sizeof(type)*size)
+#define ALLOC(var, size, type) var = alloca(sizeof(type)*(size))
 #else
 #define VARDECL(var) var
 #define ALLOC(var, size, type) var = PUSH(stack, size, type)