Starship/include/libc/stddef.h

15 lines
298 B
C

#ifndef LIBC_STDDEF_H
#define LIBC_STDDEF_H
#include <libultra/types.h>
typedef s32 ptrdiff_t;
#ifdef __GNUC__
#define offsetof(structure, member) __builtin_offsetof (structure, member)
#else
#define offsetof(structure, member) ((size_t)&(((structure*)0)->member))
#endif
#endif /* STDDEF_H */