summaryrefslogtreecommitdiff
path: root/firmware/include/malloc.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-15 15:49:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-15 15:49:32 +0000
commit7da93d58fdc73c40a721f9f1c7d7a42609e10a53 (patch)
treee16719bcc03f98a1ed0c211a8d381d029bbfc515 /firmware/include/malloc.h
parent4f58f6197d8aba3ddbb6976521ea9f814ae1738d (diff)
downloadrockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.zip
rockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.tar.gz
rockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.tar.bz2
rockbox-7da93d58fdc73c40a721f9f1c7d7a42609e10a53.tar.xz
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.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/firmware/include/malloc.h b/firmware/include/malloc.h
new file mode 100644
index 0000000..6396757
--- /dev/null
+++ b/firmware/include/malloc.h
@@ -0,0 +1,26 @@
+/* malloc.h -- header file for memory routines. */
+
+#ifndef _INCLUDE_MALLOC_H_
+#define _INCLUDE_MALLOC_H_
+
+#include <_ansi.h>
+
+#define __need_size_t
+#include <stddef.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* The routines. */
+
+extern _PTR malloc _PARAMS ((size_t));
+extern _VOID free _PARAMS ((_PTR));
+extern _PTR realloc _PARAMS ((_PTR, size_t));
+extern _PTR calloc _PARAMS ((size_t, size_t));
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _INCLUDE_MALLOC_H_ */