diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-04-21 11:50:14 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-09-09 16:32:30 +0900 |
commit | 8c826de0fd9625ccebb017a005f2b7fdcc66631d (patch) | |
tree | 8196dd9fc5d48028ce85868864749bad6c6655a4 | |
parent | b1618ac1209c588406d87a3802a6192c3fc3e18f (diff) | |
download | ruby-8c826de0fd9625ccebb017a005f2b7fdcc66631d.tar.gz |
ext/socket/addrinfo.h: don't define offsetof() macro
It's part of C89. Let's not define ourselves, as Ruby will not compile
anyway on a system without offsetof().
-rw-r--r-- | ext/socket/addrinfo.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/socket/addrinfo.h b/ext/socket/addrinfo.h index 8601d99a77..8163dc9c95 100644 --- a/ext/socket/addrinfo.h +++ b/ext/socket/addrinfo.h @@ -171,11 +171,4 @@ const #endif char *gai_strerror(int); -/* In case there is no definition of offsetof() provided - though any proper -Standard C system should have one. */ - -#ifndef offsetof -#define offsetof(p_type,field) ((size_t)&(((p_type *)0)->field)) -#endif - #endif |