From: havoc Date: Wed, 14 Jul 2010 10:11:44 +0000 (+0000) Subject: fix more warnings in mingw X-Git-Tag: xonotic-v0.1.0preview~230^2~159 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2abc0848d56d9c16ec587a90b4052d71e7aa6c6b;p=xonotic%2Fdarkplaces.git fix more warnings in mingw git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10319 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/lhnet.c b/lhnet.c index 2ba0fcfe..e2e513ee 100644 --- 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 diff --git a/sys_shared.c b/sys_shared.c index f5eb5363..d05c74be 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -6,7 +6,9 @@ # include # include // timeGetTime # include // localtime +#ifdef _MSC_VER #pragma comment(lib, "winmm.lib") +#endif #else # include # include