mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
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
Block a user