2001-11-14 18:25:35 +08:00
|
|
|
/* libc/include/alloca.h - Allocate memory on stack */
|
|
|
|
|
|
|
|
/* Written 2000 by Werner Almesberger */
|
|
|
|
/* Rearranged for general inclusion by stdlib.h.
|
|
|
|
2001, Corinna Vinschen <vinschen@redhat.com> */
|
|
|
|
|
|
|
|
#ifndef _NEWLIB_ALLOCA_H
|
|
|
|
#define _NEWLIB_ALLOCA_H
|
|
|
|
|
|
|
|
#include "_ansi.h"
|
|
|
|
#include <sys/reent.h>
|
|
|
|
|
2006-12-14 07:01:21 +08:00
|
|
|
#undef alloca
|
|
|
|
|
2001-11-14 18:25:35 +08:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#define alloca(size) __builtin_alloca(size)
|
|
|
|
#else
|
2017-12-04 13:54:48 +08:00
|
|
|
void * alloca (size_t);
|
2001-11-14 18:25:35 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|