From 5c8b90d23c70904f57c45540ec2c3e14248241eb Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Wed, 19 Aug 2009 10:58:38 +0000 Subject: [PATCH] add alloca() declaration SVN revision: 41874 --- legacy/eet/src/lib/eet_cipher.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/legacy/eet/src/lib/eet_cipher.c b/legacy/eet/src/lib/eet_cipher.c index 6064a16217..3bc0b5ad2b 100644 --- a/legacy/eet/src/lib/eet_cipher.c +++ b/legacy/eet/src/lib/eet_cipher.c @@ -2,6 +2,23 @@ # include #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 +extern "C" +# endif +void *alloca (size_t); +#endif + #include #include #include