1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Daniel Stenberg 2002-06-15 15:49:32 +00:00
parent 4f58f6197d
commit 7da93d58fd
9 changed files with 457 additions and 0 deletions

26
firmware/include/malloc.h Normal file
View file

@ -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_ */