From ef7f14036635e76f1bca975662130047d39314eb Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 3 Jun 2014 18:45:05 +0200 Subject: [PATCH] All modern compilers provide a offsetof() function offsetof() is used directly in many other .c files without any issue. --- Modules/socketmodule.c | 4 ---- 1 file changed, 4 deletions(-) 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 -- 2.50.1