summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2009-10-13 16:54:30 +0000
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2009-10-13 16:54:30 +0000
commit570df390ecc37d2a8923b783d05b136f0c304a71 (patch)
tree861bcbf800074f6c4ee1211f2d58644a3f3b9384
parenta73d378fd34e2df0ea5eba4f61047251b26cfc11 (diff)
downloadedje-570df390ecc37d2a8923b783d05b136f0c304a71.tar.gz
edje-570df390ecc37d2a8923b783d05b136f0c304a71.tar.bz2
edje-570df390ecc37d2a8923b783d05b136f0c304a71.zip
add declaration of alloca
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@43050 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
-rw-r--r--src/lib/edje_program.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/edje_program.c b/src/lib/edje_program.c
index daf3a61..b804992 100644
--- a/src/lib/edje_program.c
+++ b/src/lib/edje_program.c
@@ -2,7 +2,29 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#define _GNU_SOURCE
+
+#ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+#elif defined __GNUC__
+# define alloca __builtin_alloca
+#elif defined _AIX
+# define alloca __alloca
+#elif defined _MSC_VER
+# include <malloc.h>
+# define alloca _alloca
+#else
+# include <stddef.h>
+# ifdef __cplusplus
+extern "C"
+# endif
+void *alloca (size_t);
+#endif
+
#include <string.h>
#include "edje_private.h"