mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-16 00:15:08 +01:00
24 lines
458 B
C
24 lines
458 B
C
|
#ifndef _MEM_ALLOCATE_H
|
||
|
#define _MEM_ALLOCATE_H
|
||
|
|
||
|
#include <malloc.h>
|
||
|
#include "mem2.h"
|
||
|
|
||
|
extern __inline__ void* mem_alloc (size_t size) {
|
||
|
return MEM2_alloc(size);
|
||
|
}
|
||
|
|
||
|
extern __inline__ void* mem_realloc (void *p, size_t size) {
|
||
|
return MEM2_realloc(p, size);
|
||
|
}
|
||
|
|
||
|
extern __inline__ void* mem_align (size_t a, size_t size) {
|
||
|
return MEM2_alloc(size);
|
||
|
}
|
||
|
|
||
|
extern __inline__ void mem_free (void* mem) {
|
||
|
MEM2_free(mem);
|
||
|
}
|
||
|
|
||
|
#endif /* _MEM_ALLOCATE_H */
|