mingw: don't try to redefine alloca

mingw already has a #define alloca __builtin_alloca so trying to
redefine it triggers a warning.
This commit is contained in:
Christophe Fergeau 2012-02-29 19:01:58 +01:00 committed by Alon Levy
parent ec250967e2
commit 5bcece537e

2
mem.h
View File

@ -41,7 +41,9 @@ extern "C" {
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined __GNUC__
#if !defined alloca
# define alloca __builtin_alloca
#endif
#elif defined _AIX
# define alloca __alloca
#elif defined _MSC_VER