1#ifndef _LIBMACH_COMPAT_H_
2#define _LIBMACH_COMPAT_H_
7typedef unsigned int uint;
9typedef unsigned long long uvlong;
29#define assert(x) do { \
31 werrstr("(%s:%d) assertion " #x " failed\n", __FILE__, __LINE__); \
32 RtlRaiseStatus(STATUS_ASSERTION_FAILURE); \
35#define offsetof(x,y) FIELD_OFFSET(x,y)
38#define nelem(arr) (sizeof((arr)[0]) / sizeof((arr)))
47#define werrstr(str, ...) DPRINT(str "\n" ,##__VA_ARGS__)
50#define werrstr(x, ...)
52#define werrstr(x, ...) printf("(%s:%d) " x "\n",__FILE__,__LINE__,##__VA_ARGS__)
56#define malloc(x) RosSymAllocMem(x)
57#define mallocz(x,y) RosSymAllocMemZero(x,y)
58#define free(x) xfree(x)
59#define USED(x) (*((char *)&(x)) ^= 0)
60#define memset(x,y,z) RtlZeroMemory(x,z)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define DECLSPEC_NORETURN
int seek(void *fd, ulong off, int mode)
unsigned long long uvlong
void * RosSymAllocMemZero(ulong num, ulong size)
void * RosSymRealloc(void *mem, ulong newsize)
unsigned long long u64int
int readn(void *fd, char *buf, ulong len)
DECLSPEC_NORETURN NTSYSAPI VOID NTAPI RtlRaiseStatus(IN NTSTATUS Status)