mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 00:34:07 +08:00
Move malloc defines to <sys/malloc.h>
This commit is contained in:
@@ -126,6 +126,13 @@ struct malloc_type_header {
|
||||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
#ifdef __rtems__
|
||||
#include <stdlib.h>
|
||||
#define malloc _bsd_malloc
|
||||
#define realloc _bsd_realloc
|
||||
#define reallocf _bsd_reallocf
|
||||
#define free _bsd_free
|
||||
#endif /* __rtems__ */
|
||||
#define MALLOC_DEFINE(type, shortdesc, longdesc) \
|
||||
struct malloc_type type[1] = { \
|
||||
{ NULL, M_MAGIC, shortdesc, NULL } \
|
||||
|
Reference in New Issue
Block a user