mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00: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
1 changed files with 0 additions and 4 deletions
|
|
@ -288,10 +288,6 @@ if_indextoname(index) -- return the corresponding interface name\n\
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#ifndef offsetof
|
|
||||||
# define offsetof(type, member) ((size_t)(&((type *)0)->member))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef O_NONBLOCK
|
#ifndef O_NONBLOCK
|
||||||
# define O_NONBLOCK O_NDELAY
|
# define O_NONBLOCK O_NDELAY
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue