summaryrefslogtreecommitdiff
path: root/system/include/alloca.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-24 18:21:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-24 18:21:58 -0700
commit2f11f2e15392069a3c4a72fef2358fbf722b4e0e (patch)
tree7aadb70939ccfa84575b44e0ee714d891666efc7 /system/include/alloca.h
parentec318d92f2c5f645eab561efc461941405071131 (diff)
start to include system headers (tests broken)
Diffstat (limited to 'system/include/alloca.h')
-rw-r--r--system/include/alloca.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/system/include/alloca.h b/system/include/alloca.h
new file mode 100644
index 00000000..2ea0fd9b
--- /dev/null
+++ b/system/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