add declaration of alloca

SVN revision: 43050
This commit is contained in:
Vincent Torri 2009-10-13 16:54:30 +00:00
parent 017e26b4e0
commit 24211c8331
1 changed files with 22 additions and 0 deletions

View File

@ -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"