diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 10:51:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 10:51:14 +0000 |
commit | dab77debce600eed126896e1268e455c7d0d5af4 (patch) | |
tree | 666e31055f564661909ec15112b5017e198a08be /ext/socket/getnameinfo.c | |
parent | f76d1f8124089057417725f2dd90a7a9b011fa89 (diff) | |
download | ruby-dab77debce600eed126896e1268e455c7d0d5af4.tar.gz |
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
Diffstat (limited to 'ext/socket/getnameinfo.c')
-rw-r--r-- | ext/socket/getnameinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/getnameinfo.c b/ext/socket/getnameinfo.c index 4da9680ccb..d54a7c8c0d 100644 --- a/ext/socket/getnameinfo.c +++ b/ext/socket/getnameinfo.c @@ -59,6 +59,9 @@ #endif #endif #ifdef _WIN32 +#if defined(_MSC_VER) && _MSC_VER <= 1200 +#include <windows.h> +#endif #include <winsock2.h> #include <ws2tcpip.h> #define snprintf _snprintf |