mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[video] Mark dga funcs as const when dga not available
Fixes a compile issue (warning about attribute const) when dga is not available, thanks to spiritiit for finding it :)
This commit is contained in:
parent
2828500f04
commit
c81f2d4b52
2 changed files with 10 additions and 3 deletions
|
@ -38,7 +38,11 @@
|
|||
|
||||
Check for the presence of the XFree86-DGA support in the X server
|
||||
*/
|
||||
qboolean VID_CheckDGA (Display *, int *, int *, int *);
|
||||
qboolean VID_CheckDGA (Display *, int *, int *, int *)
|
||||
#ifndef HAVE_DGA // FIXME
|
||||
__attribute__((const))
|
||||
#endif
|
||||
;
|
||||
|
||||
|
||||
/*
|
||||
|
@ -46,6 +50,10 @@ qboolean VID_CheckDGA (Display *, int *, int *, int *);
|
|||
|
||||
Check for the presence of the XFree86-VMode X server extension
|
||||
*/
|
||||
qboolean VID_CheckVMode (Display *, int *, int *);
|
||||
qboolean VID_CheckVMode (Display *, int *, int *)
|
||||
#ifndef HAVE_DGA // FIXME
|
||||
__attribute__((const))
|
||||
#endif
|
||||
;
|
||||
|
||||
#endif // __dga_check_h_
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
#include "compat.h"
|
||||
#include "context_x11.h"
|
||||
#include "d_iface.h"
|
||||
#include "dga_check.h"
|
||||
#include "vid_internal.h"
|
||||
|
||||
static vid_internal_t vid_internal;
|
||||
|
|
Loading…
Reference in a new issue