From 7839a979f09d3652cf68eda97faf9052adf6545e Mon Sep 17 00:00:00 2001 From: caro Date: Sat, 18 Feb 2012 13:05:34 +0000 Subject: [PATCH] Embryo: update alloca declaration git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/embryo@68106 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/embryo_str.c | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/src/lib/embryo_str.c b/src/lib/embryo_str.c index 46a3284..8f2f5ce 100644 --- a/src/lib/embryo_str.c +++ b/src/lib/embryo_str.c @@ -2,28 +2,37 @@ # include "config.h" #endif -#include -#include -#include -#include - +#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 +#include +#include +#include + #include "Embryo.h" #include "embryo_private.h" -- 2.7.4