Starship/include/libc/stddef.h
petrie911 b698fd3628
Header fix (#9)
* headers

* format

* format

* format again

* headers oh my

* irix is love

* irix is life

* working

* even more fixes

* format

* touching to rebuild
2023-10-23 17:02:01 -03:00

15 lines
297 B
C

#ifndef LIBC_STDDEF_H
#define LIBC_STDDEF_H
#include "PR/ultratypes.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 */