add alloca() declaration

SVN revision: 41874
This commit is contained in:
Vincent Torri 2009-08-19 10:58:38 +00:00
parent 59f676f369
commit 5c8b90d23c
1 changed files with 17 additions and 0 deletions

View 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>