diff --git a/STATUS b/STATUS index 754cb1f..f6d260e 100644 --- a/STATUS +++ b/STATUS @@ -225,6 +225,9 @@ TEST: Function/symbol/macro needs to be tested 7.25 TODO (not a priority) +(EXT) + (EXT) alloca - + # Supporting locales What if we wanted to support more locales? diff --git a/include/alloca.h b/include/alloca.h new file mode 100644 index 0000000..343d16d --- /dev/null +++ b/include/alloca.h @@ -0,0 +1,21 @@ +#ifndef __ALLOCA_H__ +# define __ALLOCA_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#undef alloca + +/* Allocate a block of memory on the stack. */ +extern void *alloca(size_t __size); + +#define alloca(size) __builtin_alloca(size) + +#ifdef __cplusplus +} +#endif + +#endif /*__ALLOCA_H__*/