summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-23 20:23:05 +0000
committerdarkvater <darkvater@openttd.org>2004-12-23 20:23:05 +0000
commitb87336f2168abbe15809af419b60a0195ab643d0 (patch)
treeca01fb3e24b11a8cf374a38ff96a7b3a688eeeaa /network_core.h
parentb8771f511e7b2f94cc2b52e6ed730f6125695634 (diff)
downloadopenttd-b87336f2168abbe15809af419b60a0195ab643d0.tar.xz
(svn r1262) -Fix: [1088996] kill some warnings for MinGW (luzi82)
Diffstat (limited to 'network_core.h')
-rw-r--r--network_core.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/network_core.h b/network_core.h
index c426b1957..d6a408c33 100644
--- a/network_core.h
+++ b/network_core.h
@@ -12,7 +12,11 @@
# include <windows.h>
# include <winsock2.h>
# include <ws2tcpip.h>
-# pragma comment (lib, "ws2_32.lib")
+
+#ifdef _MSC_VER
+#pragma comment (lib, "ws2_32.lib")
+#endif //_MSC_VER
+
# define ENABLE_NETWORK // On windows, the network is always enabled
# define GET_LAST_ERROR() WSAGetLastError()
# define EWOULDBLOCK WSAEWOULDBLOCK