alloca() declaration

SVN revision: 51240
This commit is contained in:
Vincent Torri 2010-08-17 05:44:11 +00:00
parent 4e09c14e08
commit 32932b4135
1 changed files with 18 additions and 0 deletions

View File

@ -34,6 +34,24 @@
#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 <stdlib.h>
#include <stdio.h>
#include <string.h>