summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-03 16:45:05 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-03 16:45:05 (GMT)
commitef7f14036635e76f1bca975662130047d39314eb (patch)
tree8a1b2f85aff3a519c5b6cbf1e21c7e5346d938a2 /Modules/socketmodule.c
parent4e9ae159671bbe9d1aaa49613e1689e7f69d56c3 (diff)
downloadcpython-ef7f14036635e76f1bca975662130047d39314eb.zip
cpython-ef7f14036635e76f1bca975662130047d39314eb.tar.gz
cpython-ef7f14036635e76f1bca975662130047d39314eb.tar.bz2
All modern compilers provide a offsetof() function
offsetof() is used directly in many other .c files without any issue.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 5a2893c..1facc49 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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