usbloadergx/source/libs/libext2fs/mem_allocate.h
dimok321 2213b45351 For all the Linux lovers:
*Added support for EXT2/EXT3/EXT4 file systems:
   You can boot games from this file systems too now. Works the same way as FAT32/NTFS.
   Just put your games into drive:/wbfs/ with the known supported folder names.
2010-12-09 20:57:35 +00:00

27 lines
467 B
C

#ifndef _MEM_ALLOCATE_H
#define _MEM_ALLOCATE_H
#include <malloc.h>
static inline void* mem_alloc (size_t size) {
return malloc(size);
}
static inline void* mem_realloc (void *p, size_t size) {
return realloc(p, size);
}
static inline void* mem_align (size_t size) {
#ifdef __wii__
return memalign(32, size);
#else
return malloc(size);
#endif
}
static inline void mem_free (void* mem) {
free(mem);
}
#endif /* _MEM_ALLOCATE_H */