# HG changeset patch # User Chris Cannam # Date 1342101382 -3600 # Node ID ab8e761f3ee9435910225dae7c7f5c8012b2f407 # Parent 4256f0bb15494221359dd7098de289ba8bebc47c Win32 build fixes diff -r 4256f0bb1549 -r ab8e761f3ee9 src/vamp-sdk/FFT.cpp --- a/src/vamp-sdk/FFT.cpp Thu Jul 12 14:19:44 2012 +0100 +++ b/src/vamp-sdk/FFT.cpp Thu Jul 12 14:56:22 2012 +0100 @@ -42,6 +42,11 @@ #error Unexpected version of Vamp SDK header included #endif +#ifdef _MSC_VER +#include +#include +#endif + _VAMP_SDK_PLUGSPACE_BEGIN(FFT.cpp) namespace Vamp { diff -r 4256f0bb1549 -r ab8e761f3ee9 src/vamp-sdk/FFTimpl.cpp --- a/src/vamp-sdk/FFTimpl.cpp Thu Jul 12 14:19:44 2012 +0100 +++ b/src/vamp-sdk/FFTimpl.cpp Thu Jul 12 14:56:22 2012 +0100 @@ -27,7 +27,11 @@ } } +#ifdef _MSC_VER + int *table = (int *)_malloca(n * sizeof(int)); +#else int table[n]; +#endif for (i = 0; i < n; ++i) { m = i; @@ -104,5 +108,9 @@ io[i] /= denom; } } + +#ifdef _MSC_VER + _freea(table); +#endif }