From: caro Date: Tue, 24 Jan 2012 07:21:33 +0000 (+0000) Subject: Eina: update alloca() declaration from latest autoconf doc. X-Git-Tag: 2.0_alpha~35^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1a6f00c600a97d05a4b37b903bfbfdc8697d18f;p=framework%2Fuifw%2Feina.git Eina: update alloca() declaration from latest autoconf doc. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67483 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- 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