From da238f66e3675942fca1a70a4f625b18dd0f0b66 Mon Sep 17 00:00:00 2001 From: caro Date: Tue, 24 Jan 2012 07:21:33 +0000 Subject: [PATCH] Eina: update alloca() declaration from latest autoconf doc. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67483 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_prefix.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/lib/eina_prefix.c b/src/lib/eina_prefix.c index 4bd6be0..c830def 100644 --- a/src/lib/eina_prefix.c +++ b/src/lib/eina_prefix.c @@ -30,17 +30,15 @@ #endif #ifdef HAVE_ALLOCA_H # include -#elif defined __GNUC__ -# ifndef alloca +#elif !defined alloca +# ifdef __GNUC__ # define alloca __builtin_alloca -# endif -#elif defined _AIX -# define alloca __alloca -#elif defined _MSC_VER -# include -# define alloca _alloca -#else -# ifndef HAVE_ALLOCA +# elif defined _AIX +# define alloca __alloca +# elif defined _MSC_VER +# include +# define alloca _alloca +# elif !defined HAVE_ALLOCA # ifdef __cplusplus extern "C" # endif -- 2.7.4