summaryrefslogtreecommitdiffhomepage
path: root/src/internal/nolibc/stddef.h
blob: 8288bae72cb15fd10c3439fb57451b8163318a07 (plain)
1
2
3
4
5
6
#ifndef _STDDEF_H
#define _STDDEF_H

#define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 ))

#endif