From 6f869a57feddab587f32b0bfa1908af9c3a10c9c Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 21 Jul 2015 10:51:14 +0000 Subject: ruby/win32.h: include windows.h * include/ruby/win32.h: include windows.h before winsock2.h, because mswsock.h included by the former uses SOCKET defined after it in the latter. fix a build failure with VC6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/win32.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ruby/win32.h') diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 9daea06323..7bf389d8e1 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -35,6 +35,9 @@ extern "C++" { /* template without extern "C++" */ #if !defined(_WIN64) && !defined(WIN32) #define WIN32 #endif +#if defined(_MSC_VER) && _MSC_VER <= 1200 +#include +#endif #include #include #if !defined(_MSC_VER) || _MSC_VER >= 1400 -- cgit v1.2.3