From 804b2647ced20b8af1e632f1e99d54f905fa8ce0 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 11 Feb 2011 16:43:26 +0200 Subject: new texture stuff quite working --- src/socket.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/socket.h') diff --git a/src/socket.h b/src/socket.h index a56715d99..10bcdefee 100644 --- a/src/socket.h +++ b/src/socket.h @@ -22,10 +22,16 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN + // Without this some of the network functions are not found on mingw + #ifndef _WIN32_WINNT + #define _WIN32_WINNT 0x0501 + #endif #include #include #include - #pragma comment(lib, "wsock32.lib") + #ifdef _MSC_VER + #pragma comment(lib, "wsock32.lib") + #endif typedef SOCKET socket_t; typedef int socklen_t; #else -- cgit v1.2.3