provided code
This commit is contained in:
12
src/lib/stddef.h
Normal file
12
src/lib/stddef.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#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 */
|
||||
Reference in New Issue
Block a user