offsetof already defined in stddef.h in gcc4, so add check to prevent redefinition.
(Logical change 1.658)edge.strict_endians
parent
84fccf8a8b
commit
a82280f235
|
@ -49,7 +49,9 @@
|
|||
/*
|
||||
* Useful macro for determining the offset of a struct member.
|
||||
*/
|
||||
#ifndef offsetof
|
||||
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Simple bit operation macros. NOTE: These are NOT atomic.
|
||||
|
|
Loading…
Reference in New Issue