mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 17:15:06 +01:00
38 lines
820 B
C
38 lines
820 B
C
#ifndef LIBWBFS_GLUE_H
|
|
#define LIBWBFS_GLUE_H
|
|
|
|
#include <gctypes.h>
|
|
#include "utils.h"
|
|
#include "mem2.hpp"
|
|
|
|
#define debug_printf(fmt, ...);
|
|
|
|
#include <stdio.h>
|
|
#define wbfs_fatal(x) do { wd_last_error = 1; } while(0)
|
|
#define wbfs_error(x) do { wd_last_error = 2; } while(0)
|
|
|
|
#include <stdlib.h>
|
|
#include <malloc.h>
|
|
|
|
#define wbfs_malloc(x) MEM2_alloc(x)
|
|
#define wbfs_free(x) SAFE_FREE(x)
|
|
|
|
#define wbfs_ioalloc(x) MEM2_alloc(((x) + 31) & ~31)
|
|
#define wbfs_iofree(x) SAFE_FREE(x)
|
|
|
|
#define wbfs_be16(x) (*((u16*)(x)))
|
|
#define wbfs_be32(x) (*((u32*)(x)))
|
|
#define wbfs_ntohl(x) (x)
|
|
#define wbfs_htonl(x) (x)
|
|
#define wbfs_ntohs(x) (x)
|
|
#define wbfs_htons(x) (x)
|
|
|
|
#include <string.h>
|
|
|
|
#define wbfs_memcmp(x,y,z) memcmp(x,y,z)
|
|
#define wbfs_memcpy(x,y,z) memcpy(x,y,z)
|
|
#define wbfs_memset(x,y,z) memset(x,y,z)
|
|
|
|
|
|
#endif
|