diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2014-08-26 23:11:34 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2014-08-29 22:06:59 -0400 |
commit | 17a007bc60c69d6ea471a96a465e04ba4ac2d00f (patch) | |
tree | 2b0ca8b479f48cbd047414a10cb58430faf9ca71 /firmware/libc/include/stdlib.h | |
parent | 77b3625763ae4d5aa6aaa9d44fbc1bfec6b29335 (diff) | |
download | rockbox-17a007bc60c69d6ea471a96a465e04ba4ac2d00f.tar.gz rockbox-17a007bc60c69d6ea471a96a465e04ba4ac2d00f.zip |
Add normal alloca() definition and implement a strdupa and friends
Change-Id: I21c9c21fd664fb11bc8496ace4a389f535a030d6
Diffstat (limited to 'firmware/libc/include/stdlib.h')
-rw-r--r-- | firmware/libc/include/stdlib.h | 5 |
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 *); | |||
31 | void *realloc(void *, size_t); | 31 | void *realloc(void *, size_t); |
32 | int atexit(void (*)(void)); | 32 | int atexit(void (*)(void)); |
33 | 33 | ||
34 | #ifdef __GNUC__ | ||
35 | # undef alloca | ||
36 | # define alloca(size) __builtin_alloca (size) | ||
37 | #endif /* GCC. */ | ||
38 | |||
34 | #define RAND_MAX INT_MAX | 39 | #define RAND_MAX INT_MAX |
35 | 40 | ||
36 | void srand(unsigned int seed); | 41 | void srand(unsigned int seed); |