From 2abc0848d56d9c16ec587a90b4052d71e7aa6c6b Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 14 Jul 2010 10:11:44 +0000 Subject: [PATCH] fix more warnings in mingw git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10319 d7cf8633-e32d-0410-b094-e92efae38249 --- lhnet.c | 2 ++ sys_shared.c | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.39.2