diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-14 08:24:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-14 08:24:58 +0000 |
commit | cd9165458ba25a815c01d29ff1ce4ce88b599499 (patch) | |
tree | 0d888e8f320f683e5230a02147b5b71e49308507 /win32/win32.c | |
parent | e6589b2b552f1fb7fe601cce7dda7b86fb4d873d (diff) | |
download | ruby-cd9165458ba25a815c01d29ff1ce4ce88b599499.tar.gz |
iphlpapi is unavailable with older VC
* include/ruby/win32.h, win32/Makefile.sub, win32/win32.c: iphlpapi is
not available with older Visual C. works with VC9 or later at least.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 63453c349e..373f776504 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3736,6 +3736,7 @@ socketpair(int af, int type, int protocol, int *sv) return 0; } +#if !defined(_MSC_VER) || _MSC_VER >= 1400 /* License: Ruby's */ static void str2guid(const char *str, GUID *guid) @@ -3879,6 +3880,7 @@ freeifaddrs(struct ifaddrs *ifp) ifp = next; } } +#endif // // Networking stubs |