mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
r7337@Kushana: nickm | 2006-08-11 00:42:04 -0700
Only use __builtin_offsetof with gcc 4 or later svn:r7028
This commit is contained in:
parent
f294575469
commit
33fc829273
@ -97,7 +97,7 @@ extern int dmalloc_free(const char *file, const int line, void *pnt,
|
||||
#define tor_memdup(s, n) _tor_memdup(s, n DMALLOC_ARGS)
|
||||
|
||||
/** Return the offset of <b>member</b> within the type <b>tp</b>, in bytes */
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && __GNUC__ > 3
|
||||
#define STRUCT_OFFSET(tp, member) __builtin_offsetof(tp, member)
|
||||
#else
|
||||
#define STRUCT_OFFSET(tp, member) \
|
||||
|
Loading…
Reference in New Issue
Block a user