diff options
Diffstat (limited to 'libspeex/stack_alloc.h')
-rw-r--r-- | libspeex/stack_alloc.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libspeex/stack_alloc.h b/libspeex/stack_alloc.h index cb048fa..f9056b4 100644 --- a/libspeex/stack_alloc.h +++ b/libspeex/stack_alloc.h @@ -36,11 +36,15 @@ #define STACK_ALLOC_H #ifdef USE_ALLOCA -#ifdef WIN32 -#include <malloc.h> -#else -#include <alloca.h> -#endif +# ifdef WIN32 +# include <malloc.h> +# else +# ifdef HAVE_ALLOCA_H +# include <alloca.h> +# else +# include <stdlib.h> +# endif +# endif #endif /** |