13 lines
331 B
C
13 lines
331 B
C
|
#ifndef __LIB_STDDEF_H
|
||
|
#define __LIB_STDDEF_H
|
||
|
|
||
|
#define NULL ((void *) 0)
|
||
|
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER)
|
||
|
|
||
|
/* GCC predefines the types we need for ptrdiff_t and size_t,
|
||
|
so that we don't have to guess. */
|
||
|
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
||
|
typedef __SIZE_TYPE__ size_t;
|
||
|
|
||
|
#endif /* lib/stddef.h */
|