diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-06-17 13:19:18 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-06-17 13:19:18 +0000 |
commit | f7b10a3747438e373d9dd91fd39fe9b5cb0fc125 (patch) | |
tree | dc9fdb556edd4708c212d907721e00cfaadf7d0b /firmware/include/stdlib.h | |
parent | d2e021473878502b2dee6af75ef47253b06a75f2 (diff) | |
download | rockbox-f7b10a3747438e373d9dd91fd39fe9b5cb0fc125.tar.gz rockbox-f7b10a3747438e373d9dd91fd39fe9b5cb0fc125.zip |
added protos and fixed to make them work as proper newlib replacement
headers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1034 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/stdlib.h')
-rw-r--r-- | firmware/include/stdlib.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/include/stdlib.h b/firmware/include/stdlib.h index ab07a3116e..2809172a7d 100644 --- a/firmware/include/stdlib.h +++ b/firmware/include/stdlib.h | |||
@@ -29,6 +29,13 @@ extern __IMPORT int __mb_cur_max; | |||
29 | 29 | ||
30 | _VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR))); | 30 | _VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR))); |
31 | 31 | ||
32 | void *malloc(size_t); | ||
33 | void *calloc (size_t nmemb, size_t size); | ||
34 | void free(void *); | ||
35 | void *realloc(void *, size_t); | ||
36 | |||
37 | #define abs(x) ((x)>0?x:-x) | ||
38 | |||
32 | #ifdef __cplusplus | 39 | #ifdef __cplusplus |
33 | } | 40 | } |
34 | #endif | 41 | #endif |