usbloadergx/libcustomext2fs/source/mem_allocate.h
dimok321 9bcb476262 *fixed settings paths creation bug
*fixed crash when installing on ntfs
*fixed a few bugs with language setting for games
2010-12-29 10:22:11 +00:00

25 lines
541 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) {
//using normal free, it will decide which free to use (just to be on the safe side)
free(mem);
}
#endif /* _MEM_ALLOCATE_H */