From: caro Date: Sat, 18 Feb 2012 14:25:45 +0000 (+0000) Subject: Edje: update declaration of alloca X-Git-Tag: submit/trunk/20120815.180907~224 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d1997c019dc3a2840bab19fef33d00ee76f9451;p=profile%2Fivi%2Fedje.git Edje: update declaration of alloca git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@68107 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/edje_cc_out.c b/src/bin/edje_cc_out.c index f197391..a275347 100644 --- a/src/bin/edje_cc_out.c +++ b/src/bin/edje_cc_out.c @@ -2,21 +2,30 @@ # include "config.h" #endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif #ifdef HAVE_ALLOCA_H # include -#elif defined __GNUC__ -# define alloca __builtin_alloca -#elif defined _AIX -# define alloca __alloca -#elif defined _MSC_VER -# include -# define alloca _alloca -#else -# include -# ifdef __cplusplus +#elif !defined alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _AIX +# define alloca __alloca +# elif defined _MSC_VER +# include +# define alloca _alloca +# elif !defined HAVE_ALLOCA +# ifdef __cplusplus extern "C" -# endif +# endif void *alloca (size_t); +# endif #endif #include diff --git a/src/lib/edje_private.h b/src/lib/edje_private.h index ecb8234..d9d578c 100644 --- a/src/lib/edje_private.h +++ b/src/lib/edje_private.h @@ -9,18 +9,30 @@ # define _GNU_SOURCE #endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif #ifdef HAVE_ALLOCA_H # include -#elif defined __GNUC__ -# define alloca __builtin_alloca -#elif defined _AIX -# define alloca __alloca -#elif defined _MSC_VER -# include -# define alloca _alloca -#else -# include +#elif !defined alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _AIX +# define alloca __alloca +# elif defined _MSC_VER +# include +# define alloca _alloca +# elif !defined HAVE_ALLOCA +# ifdef __cplusplus +extern "C" +# endif void *alloca (size_t); +# endif #endif #include @@ -35,6 +47,8 @@ void *alloca (size_t); # include #endif +#include + #include #include #include