summaryrefslogtreecommitdiff
path: root/firmware/include/stdlib.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-17 13:19:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-17 13:19:18 +0000
commitf7b10a3747438e373d9dd91fd39fe9b5cb0fc125 (patch)
treedc9fdb556edd4708c212d907721e00cfaadf7d0b /firmware/include/stdlib.h
parentd2e021473878502b2dee6af75ef47253b06a75f2 (diff)
downloadrockbox-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.h7
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
32void *malloc(size_t);
33void *calloc (size_t nmemb, size_t size);
34void free(void *);
35void *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