Skip to content
Snippets Groups Projects
Commit 6f6c88be authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

_alloca() for Win32

parent 736efd69
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment