From cd9165458ba25a815c01d29ff1ce4ce88b599499 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 14 May 2013 08:24:58 +0000 Subject: 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 --- include/ruby/win32.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ruby') diff --git a/include/ruby/win32.h b/include/ruby/win32.h index ec156c40e7..ad43dfc81f 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -37,7 +37,9 @@ extern "C++" { /* template without extern "C++" */ #endif #include #include +#if !defined(_MSC_VER) || _MSC_VER >= 1400 #include +#endif #if defined(__cplusplus) && defined(_MSC_VER) } #endif -- cgit v1.2.3