diff options
author | John Beppu <beppu@lbox.org> | 2000-08-21 22:17:17 +0000 |
---|---|---|
committer | John Beppu <beppu@lbox.org> | 2000-08-21 22:17:17 +0000 |
commit | 5173b6de5bb8ec5ff2e6de7e44fbbf49b55ed7d7 (patch) | |
tree | f9a99fe730775ed7ec748a699ebdf4686a26c0d0 /include/stdlib.h | |
parent | 84866232d9644a02d613e11710d0f3abe8c7a66e (diff) | |
download | uClibc-alpine-5173b6de5bb8ec5ff2e6de7e44fbbf49b55ed7d7.tar.bz2 uClibc-alpine-5173b6de5bb8ec5ff2e6de7e44fbbf49b55ed7d7.tar.xz |
+ added alloca() support for all architectures
by way of gcc's __builtin_alloca(). I think
I did it right, but we'll see.
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index fefaf447a..d323d099b 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -28,6 +28,10 @@ extern void * calloc __P ((size_t, size_t)); extern void free __P ((void *)); extern void * realloc __P ((void *, size_t)); +#if defined __USE_GNU || defined __USE_BSD || defined __USE_MISC +# include <alloca.h> +#endif /* Use GNU, BSD, or misc. */ + #ifdef DEBUG_MALLOC extern void * malloc_dbg __P ((size_t, char* func, char* file, int line)); |