mirror of
https://github.com/xiph/opus.git
synced 2025-05-17 00:48:29 +00:00
_alloca() for Win32
This commit is contained in:
parent
736efd6909
commit
6f6c88bef1
1 changed files with 7 additions and 1 deletions
|
@ -97,7 +97,13 @@
|
|||
#elif defined(USE_ALLOCA)
|
||||
|
||||
#define VARDECL(type, var) type *var
|
||||
#define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))
|
||||
|
||||
# ifdef WIN32
|
||||
# define ALLOC(var, size, type) var = ((type*)_alloca(sizeof(type)*(size)))
|
||||
# else
|
||||
# define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))
|
||||
# endif
|
||||
|
||||
#define SAVE_STACK
|
||||
#define RESTORE_STACK
|
||||
#define ALLOC_STACK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue