Bochs/bochs/fpu/stubs/linux/stddef.h
2001-04-10 01:04:59 +00:00

16 lines
243 B
C

#ifndef _LINUX_STDDEF_H
#define _LINUX_STDDEF_H
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
#undef NULL
#define NULL ((void *)0)
#undef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif