Starship/include/libc/stddef.h

15 lines
298 B
C
Raw Normal View History

2023-10-16 19:58:39 +03:00
#ifndef LIBC_STDDEF_H
#define LIBC_STDDEF_H
#include <libultra/types.h>
2023-10-16 19:58:39 +03:00
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 */