From 5bcece537e2be12fd13ea85a636ba2e28c66c256 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 29 Feb 2012 19:01:58 +0100 Subject: [PATCH] mingw: don't try to redefine alloca mingw already has a #define alloca __builtin_alloca so trying to redefine it triggers a warning. --- mem.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mem.h b/mem.h index 980ea13..af89ba6 100644 --- a/mem.h +++ b/mem.h @@ -41,7 +41,9 @@ extern "C" { #ifdef HAVE_ALLOCA_H # include #elif defined __GNUC__ +#if !defined alloca # define alloca __builtin_alloca +#endif #elif defined _AIX # define alloca __alloca #elif defined _MSC_VER