declare alloca()
authorVincent Torri <vincent.torri@gmail.com>
Fri, 26 Nov 2010 08:06:19 +0000 (08:06 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Fri, 26 Nov 2010 08:06:19 +0000 (08:06 +0000)
SVN revision: 55003

legacy/ecore/src/lib/ecore_file/ecore_file_path.c

index 63ef319fd7f56a205b7a913c613e486d126a92be..69902509c9bb8e1ccac4061ad6dd4a83d05ae3ce 100644 (file)
@@ -2,6 +2,24 @@
 # include <config.h>
 #endif
 
+#undef alloca
+#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>