diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-06-15 15:49:32 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-06-15 15:49:32 +0000 |
commit | 7da93d58fdc73c40a721f9f1c7d7a42609e10a53 (patch) | |
tree | e16719bcc03f98a1ed0c211a8d381d029bbfc515 /firmware/include/malloc.h | |
parent | 4f58f6197d8aba3ddbb6976521ea9f814ae1738d (diff) | |
download | rockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.tar.gz rockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.zip |
This is my initial attempt to get rid of the newlib headers requirement,
for gcc built without newlib.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1017 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/malloc.h')
-rw-r--r-- | firmware/include/malloc.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/firmware/include/malloc.h b/firmware/include/malloc.h new file mode 100644 index 0000000000..639675787a --- /dev/null +++ b/firmware/include/malloc.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* malloc.h -- header file for memory routines. */ | ||
2 | |||
3 | #ifndef _INCLUDE_MALLOC_H_ | ||
4 | #define _INCLUDE_MALLOC_H_ | ||
5 | |||
6 | #include <_ansi.h> | ||
7 | |||
8 | #define __need_size_t | ||
9 | #include <stddef.h> | ||
10 | |||
11 | #ifdef __cplusplus | ||
12 | extern "C" { | ||
13 | #endif | ||
14 | |||
15 | /* The routines. */ | ||
16 | |||
17 | extern _PTR malloc _PARAMS ((size_t)); | ||
18 | extern _VOID free _PARAMS ((_PTR)); | ||
19 | extern _PTR realloc _PARAMS ((_PTR, size_t)); | ||
20 | extern _PTR calloc _PARAMS ((size_t, size_t)); | ||
21 | |||
22 | #ifdef __cplusplus | ||
23 | } | ||
24 | #endif | ||
25 | |||
26 | #endif /* _INCLUDE_MALLOC_H_ */ | ||