Commit ef7f1403 authored by Victor Stinner's avatar Victor Stinner

All modern compilers provide a offsetof() function

offsetof() is used directly in many other .c files without any issue.
parent 4e9ae159
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment