This commit is contained in:
Alejandro Javier Asenjo Nitti 2023-10-16 13:58:39 -03:00
parent 73e7e36375
commit a105c1e099

14
include/libc/stddef.h Normal file
View 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 */