From df30c9d13185a525d2c45de3becd39c4a178f484 Mon Sep 17 00:00:00 2001 From: tma Date: Thu, 22 Sep 2005 03:21:33 +0000 Subject: * Port to MinGW git-svn-id: svn://svn.icculus.org/quake3/trunk@97 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/win32/win_qgl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'code/win32/win_qgl.c') diff --git a/code/win32/win_qgl.c b/code/win32/win_qgl.c index 57277a4..0656006 100644 --- a/code/win32/win_qgl.c +++ b/code/win32/win_qgl.c @@ -3220,8 +3220,12 @@ static qboolean GlideIsValid( void ) return qfalse; } +#ifdef _MSC_VER # pragma warning (disable : 4113 4133 4047 ) # define GPA( a ) GetProcAddress( glw_state.hinstOpenGL, a ) +#else +# define GPA( a ) (void *)GetProcAddress( glw_state.hinstOpenGL, a ) +#endif /* ** QGL_Init @@ -4368,7 +4372,9 @@ void QGL_EnableLogging( qboolean enable ) } } +#ifdef _MSC_VER #pragma warning (default : 4113 4133 4047 ) +#endif -- cgit v1.2.3