diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 16:45:05 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 16:45:05 (GMT) |
commit | ef7f14036635e76f1bca975662130047d39314eb (patch) | |
tree | 8a1b2f85aff3a519c5b6cbf1e21c7e5346d938a2 /Modules/socketmodule.c | |
parent | 4e9ae159671bbe9d1aaa49613e1689e7f69d56c3 (diff) | |
download | cpython-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.c | 4 |
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 |