summaryrefslogtreecommitdiffstats
path: root/firmware/libc/include/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc/include/stdlib.h')
-rw-r--r--firmware/libc/include/stdlib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/libc/include/stdlib.h b/firmware/libc/include/stdlib.h
index 57553367c4..e24d6a579f 100644
--- a/firmware/libc/include/stdlib.h
+++ b/firmware/libc/include/stdlib.h
@@ -31,6 +31,11 @@ void free(void *);
void *realloc(void *, size_t);
int atexit(void (*)(void));
+#ifdef __GNUC__
+# undef alloca
+# define alloca(size) __builtin_alloca (size)
+#endif /* GCC. */
+
#define RAND_MAX INT_MAX
void srand(unsigned int seed);