From: Victor Stinner Date: Tue, 3 Jun 2014 16:45:05 +0000 (+0200) Subject: All modern compilers provide a offsetof() function X-Git-Tag: v3.5.0a1~1527 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef7f14036635e76f1bca975662130047d39314eb;p=python All modern compilers provide a offsetof() function offsetof() is used directly in many other .c files without any issue. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 5a2893ce4d..1facc49cb0 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -288,10 +288,6 @@ if_indextoname(index) -- return the corresponding interface name\n\ #include -#ifndef offsetof -# define offsetof(type, member) ((size_t)(&((type *)0)->member)) -#endif - #ifndef O_NONBLOCK # define O_NONBLOCK O_NDELAY #endif