diff --git a/include/alloca.h b/include/alloca.h index 80f62103d2..306559477c 100644 --- a/include/alloca.h +++ b/include/alloca.h @@ -32,6 +32,11 @@ # undef __alloca # define alloca(size) __alloca(size) # define __alloca(size) __builtin_alloca(size) +#elif defined(_MSC_VER) +# undef alloca +# undef __alloca +# define alloca(size) _alloca(size) +# define __alloca(size) _alloca(size) #endif #endif /* __INCLUDE_ALLOCA_H */