4 FILE_LICENCE ( GPL2_ONLY
);
10 #define NULL ((void *)0)
13 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
16 #define container_of(ptr, type, member) ({ \
17 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
18 (type *)( (char *)__mptr - offsetof(type,member) );})
20 /* __WCHAR_TYPE__ is defined by gcc and will change if -fshort-wchar is used */
21 #ifndef __WCHAR_TYPE__
22 #define __WCHAR_TYPE__ long int
24 typedef __WCHAR_TYPE__
wchar_t;