summaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-11 16:43:26 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-11 16:43:26 +0200
commit804b2647ced20b8af1e632f1e99d54f905fa8ce0 (patch)
treec60db21bf4394434424993711669253ee9f6aae2 /src/socket.h
parent841ac10e5c20ad152f375f43bceb992fc3945041 (diff)
downloadminetest-804b2647ced20b8af1e632f1e99d54f905fa8ce0.tar.gz
minetest-804b2647ced20b8af1e632f1e99d54f905fa8ce0.tar.bz2
minetest-804b2647ced20b8af1e632f1e99d54f905fa8ce0.zip
new texture stuff quite working
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h8
1 files changed, 7 insertions, 1 deletions
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 <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
- #pragma comment(lib, "wsock32.lib")
+ #ifdef _MSC_VER
+ #pragma comment(lib, "wsock32.lib")
+ #endif
typedef SOCKET socket_t;
typedef int socklen_t;
#else