mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 21:45:00 +03:00
stddef.h
This commit is contained in:
parent
73e7e36375
commit
a105c1e099
14
include/libc/stddef.h
Normal file
14
include/libc/stddef.h
Normal file
@ -0,0 +1,14 @@
|
||||
#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 */
|
Loading…
Reference in New Issue
Block a user