summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/win32.h2
1 files changed, 2 insertions, 0 deletions
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 <winsock2.h>
#include <ws2tcpip.h>
+#if !defined(_MSC_VER) || _MSC_VER >= 1400
#include <iphlpapi.h>
+#endif
#if defined(__cplusplus) && defined(_MSC_VER)
}
#endif