mirror of https://github.com/python/cpython
All modern compilers provide a offsetof() function
offsetof() is used directly in many other .c files without any issue.
This commit is contained in:
parent
4e9ae15967
commit
ef7f140366
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue