From d34c63e7b39ac9ba7cb181cc09cab84508586df7 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 14 Jul 2010 10:11:20 +0000 Subject: [PATCH] fix a warning in mingw git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10318 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_wgl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vid_wgl.c b/vid_wgl.c index 8ea9f586..53153e02 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -19,12 +19,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // vid_wgl.c -- NT GL vid component +#ifdef _MSC_VER #pragma comment(lib, "comctl32.lib") +#endif #ifdef SUPPORTDIRECTX // Include DX libs +#ifdef _MSC_VER #pragma comment(lib, "dinput8.lib") #pragma comment(lib, "dxguid.lib") +#endif #ifndef DIRECTINPUT_VERSION # define DIRECTINPUT_VERSION 0x0500 /* Version 5.0 */ #endif @@ -44,7 +48,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifdef SUPPORTD3D #include +#ifdef _MSC_VER #pragma comment(lib, "d3d9.lib") +#endif cvar_t vid_dx9 = {CVAR_SAVE, "vid_dx9", "0", "use Microsoft Direct3D9(r) for rendering"}; cvar_t vid_dx9_hal = {CVAR_SAVE, "vid_dx9_hal", "1", "enables hardware rendering (1), otherwise software reference rasterizer (0 - very slow), note that 0 is necessary when using NVPerfHUD (which renders in hardware but requires this option to enable it)"}; -- 2.39.2