shithub: opus-tools

Download patch

ref: 1aa2338f030036274d4ef52a42a1dcc55ea91210
parent: 5ef6b751253691f4278e14ccb40ae8aab0716726
author: Gregory Maxwell <[email protected]>
date: Thu Jul 12 08:51:50 EDT 2012

Use _alloca if we don't have alloca for WIN32.

--- a/src/stack_alloc.h
+++ b/src/stack_alloc.h
@@ -37,6 +37,9 @@
 
 #ifdef WIN32
 # include <malloc.h>
+# ifndef alloca
+#   define alloca(_x) _alloca(_x);
+# endif
 #else
 #ifdef HAVE_ALLOCA_H
 #  include <alloca.h>