mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-10-03 12:15:08 +02:00
2213b45351
*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.
27 lines
467 B
C
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 */
|