Move offsetofend from defs.h to macros.h
* defs.h (offsetofend): Move ... * macros.h: ... here.
This commit is contained in:
parent
78de224180
commit
a300de56c1
5
defs.h
5
defs.h
@ -71,11 +71,6 @@ const char *strerror(int);
|
||||
extern char *stpcpy(char *dst, const char *src);
|
||||
#endif
|
||||
|
||||
#ifndef offsetofend
|
||||
# define offsetofend(type, member) \
|
||||
(offsetof(type, member) + sizeof(((type *)NULL)->member))
|
||||
#endif
|
||||
|
||||
/* macros */
|
||||
#ifndef MAX
|
||||
# define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||
|
Loading…
Reference in New Issue
Block a user