diff options
author | ZuBsPaCe <kurt.rudin@gmx.net> | 2015-10-03 00:42:40 +0200 |
---|---|---|
committer | ZuBsPaCe <kurt.rudin@gmx.net> | 2015-10-03 00:42:40 +0200 |
commit | d99727d099a3fb689b7828742f659e95f920fb07 (patch) | |
tree | 3f7684ad7368267890394e577a42465003d2b3ef | |
parent | c69afe49488d81909495f6cef487fb369bf31f49 (diff) |
Fixes following Visual Studio 2013 compile error on windows:
drivers\opus\celt\bands.c(555) : error C2057: expected constant expression
drivers\opus\celt\bands.c(555) : error C2466: cannot allocate an array of constant size 0
drivers\opus\celt\bands.c(555) : error C2133: 'tmp' : unknown size
-rw-r--r-- | drivers/opus/opus_config.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/opus/opus_config.h b/drivers/opus/opus_config.h index e75550409f..c6470e92c3 100644 --- a/drivers/opus/opus_config.h +++ b/drivers/opus/opus_config.h @@ -91,8 +91,13 @@ /* This is a build of OPUS */ #define OPUS_BUILD /**/ -/* Use C99 variable-size arrays */ -#define VAR_ARRAYS 1 +#ifndef WIN32 + /* Use C99 variable-size arrays */ + #define VAR_ARRAYS 1 +#else + /* Fixes VS 2013 compile error */ + #define USE_ALLOCA 1 +#endif /* Define to `__inline__' or `__inline' if that's what the C compiler |