add alloca() declaration
authorcaro <caro>
Wed, 19 Aug 2009 10:58:38 +0000 (10:58 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 19 Aug 2009 10:58:38 +0000 (10:58 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@41874 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_cipher.c

index 6064a16..3bc0b5a 100644 (file)
@@ -2,6 +2,23 @@
 # include <config.h>
 #endif
 
+#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 <stdio.h>
 #include <string.h>
 #include <sys/types.h>