aboutsummaryrefslogtreecommitdiffstats
path: root/code/win32/win_qgl.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/win32/win_qgl.c')
-rw-r--r--code/win32/win_qgl.c6
1 files changed, 6 insertions, 0 deletions
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