diff options
Diffstat (limited to 'include/stddef.h')
-rw-r--r-- | include/stddef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h new file mode 100644 index 000000000..570512ba7 --- /dev/null +++ b/include/stddef.h @@ -0,0 +1,6 @@ +#ifndef __STDDEF_H__ +#define __STDDEF_H__ + +#define offsetof(st, m) ((size_t) ( (char *)&((st *)(0))->m - (char *)0 )) + +#endif |