summaryrefslogtreecommitdiff
path: root/Unix/i686-elf/include/alloca.h
diff options
context:
space:
mode:
Diffstat (limited to 'Unix/i686-elf/include/alloca.h')
-rw-r--r--Unix/i686-elf/include/alloca.h21
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