mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
glx: fix duplicate typedef
../glx/indirect_table.c
In file included from ../glx/indirect_table.c:28:
In file included from ../glx/glxserver.h:66:
../include/glx_extinit.h:33:28: warning: redefinition of typedef '__GLXscreen' is a C11 feature [-Wtypedef-redefinition]
33 | typedef struct __GLXscreen __GLXscreen;
| ^
../glx/glxscreens.h:113:28: note: previous definition is here
113 | typedef struct __GLXscreen __GLXscreen;
| ^
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
02f04ec0aa
commit
c25a0a533e
@@ -31,10 +31,11 @@
|
||||
* Silicon Graphics, Inc.
|
||||
*/
|
||||
|
||||
#include "include/glx_extinit.h"
|
||||
|
||||
#include "extension_string.h"
|
||||
#include "glxvndabi.h"
|
||||
|
||||
typedef struct __GLXconfig __GLXconfig;
|
||||
struct __GLXconfig {
|
||||
/* Management */
|
||||
__GLXconfig *next;
|
||||
@@ -110,7 +111,6 @@ GLint glxConvertToXVisualType(int visualType);
|
||||
** and DDX layers of the GLX server extension. The methods provide an
|
||||
** interface for context management on a screen.
|
||||
*/
|
||||
typedef struct __GLXscreen __GLXscreen;
|
||||
struct __GLXscreen {
|
||||
void (*destroy) (__GLXscreen * screen);
|
||||
|
||||
|
||||
@@ -29,8 +29,11 @@
|
||||
/* this is separate due to sdksyms pulling in extinit.h */
|
||||
/* XXX this comment no longer makes sense i think */
|
||||
#ifdef GLXEXT
|
||||
|
||||
typedef struct __GLXprovider __GLXprovider;
|
||||
typedef struct __GLXscreen __GLXscreen;
|
||||
typedef struct __GLXconfig __GLXconfig;
|
||||
|
||||
struct __GLXprovider {
|
||||
__GLXscreen *(*screenProbe) (ScreenPtr pScreen);
|
||||
const char *name;
|
||||
|
||||
Reference in New Issue
Block a user