diff options
Diffstat (limited to 'extras/mini-os/include/xmalloc.h')
-rw-r--r-- | extras/mini-os/include/xmalloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/mini-os/include/xmalloc.h b/extras/mini-os/include/xmalloc.h index e29a0387fc..f5e721fa16 100644 --- a/extras/mini-os/include/xmalloc.h +++ b/extras/mini-os/include/xmalloc.h @@ -7,6 +7,9 @@ /* Allocate space for array of typed objects. */ #define xmalloc_array(_type, _num) ((_type *)_xmalloc_array(sizeof(_type), __alignof__(_type), _num)) +#define malloc(size) _xmalloc(size, 4) +#define free(ptr) xfree(ptr) + /* Free any of the above. */ extern void xfree(const void *); |