]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix more warnings in mingw
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Jul 2010 10:11:44 +0000 (10:11 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Jul 2010 10:11:44 +0000 (10:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10319 d7cf8633-e32d-0410-b094-e92efae38249

lhnet.c
sys_shared.c

diff --git a/lhnet.c b/lhnet.c
index 2ba0fcfe743ef2513754790e657d283012725395..e2e513ee7bfdbc1d73b145a13f7ae7bb11ef889e 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -2,7 +2,9 @@
 // Written by Forest Hale 2003-06-15 and placed into public domain.
 
 #ifdef WIN32
+#ifdef _MSC_VER
 #pragma comment(lib, "ws2_32.lib")
+#endif
 # ifdef SUPPORTIPV6
 // Windows XP or higher is required for getaddrinfo, but the inclusion of wspiapi provides fallbacks for older versions
 # define _WIN32_WINNT 0x0501
index f5eb536399b70d7e10efbb650053ea4ccafa7cec..d05c74bed687d3297482f6b250d1c52ed09cf2ea 100644 (file)
@@ -6,7 +6,9 @@
 # include <windows.h>
 # include <mmsystem.h> // timeGetTime
 # include <time.h> // localtime
+#ifdef _MSC_VER
 #pragma comment(lib, "winmm.lib")
+#endif
 #else
 # include <unistd.h>
 # include <fcntl.h>