diff options
author | Alexis211 <alexis211@gmail.com> | 2009-12-18 16:22:58 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-12-18 16:22:58 +0100 |
commit | d04645198d648a17ccb83e70aa5e6d60a06121aa (patch) | |
tree | 4ee3203112c2fda42a85ec00f3f78eee14689869 /Unix/i686-elf/include/alloca.h | |
parent | 5f87c447bdcb82beacbfb930942fe9995dcdb60f (diff) | |
download | Melon-d04645198d648a17ccb83e70aa5e6d60a06121aa.tar.gz Melon-d04645198d648a17ccb83e70aa5e6d60a06121aa.zip |
[nonworking commit] Started porting newlib
Diffstat (limited to 'Unix/i686-elf/include/alloca.h')
-rw-r--r-- | Unix/i686-elf/include/alloca.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Unix/i686-elf/include/alloca.h b/Unix/i686-elf/include/alloca.h new file mode 100644 index 0000000..2ea0fd9 --- /dev/null +++ b/Unix/i686-elf/include/alloca.h @@ -0,0 +1,21 @@ +/* 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> + +#undef alloca + +#ifdef __GNUC__ +#define alloca(size) __builtin_alloca(size) +#else +void * _EXFUN(alloca,(size_t)); +#endif + +#endif |