summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/alloca.h
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/include/alloca.h')
-rw-r--r--mdk-stage1/dietlibc/include/alloca.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/alloca.h b/mdk-stage1/dietlibc/include/alloca.h
index e69de29bb..41f92354f 100644
--- a/mdk-stage1/dietlibc/include/alloca.h
+++ b/mdk-stage1/dietlibc/include/alloca.h
@@ -0,0 +1,13 @@
+#ifndef _ALLOCA_H
+#define _ALLOCA_H
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+
+#ifdef __GNUC__
+#define alloca(x) __builtin_alloca(x)
+#else
+void *alloca(size_t size) __THROW;
+#endif
+
+#endif