All modern compilers provide a offsetof() function

offsetof() is used directly in many other .c files without any issue.
This commit is contained in:
Victor Stinner 2014-06-03 18:45:05 +02:00
parent 4e9ae15967
commit ef7f140366
1 changed files with 0 additions and 4 deletions

View File

@ -288,10 +288,6 @@ if_indextoname(index) -- return the corresponding interface name\n\
#include <stddef.h>
#ifndef offsetof
# define offsetof(type, member) ((size_t)(&((type *)0)->member))
#endif
#ifndef O_NONBLOCK
# define O_NONBLOCK O_NDELAY
#endif