hw/xwin: Fix building with -fno-common
Provide an actual definition of noDriExtension where used, rather than a tentative definition in a header, to fix compilation with -fno-common (the default with gcc 10).
This commit is contained in:
parent
d18dcecbe0
commit
bb7aab6afe
|
@ -111,6 +111,8 @@ static PixmapFormatRec g_PixmapFormats[] = {
|
||||||
{32, 32, BITMAP_SCANLINE_PAD}
|
{32, 32, BITMAP_SCANLINE_PAD}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static Bool noDriExtension;
|
||||||
|
|
||||||
static const ExtensionModule xwinExtensions[] = {
|
static const ExtensionModule xwinExtensions[] = {
|
||||||
#ifdef GLXEXT
|
#ifdef GLXEXT
|
||||||
#ifdef XWIN_WINDOWS_DRI
|
#ifdef XWIN_WINDOWS_DRI
|
||||||
|
|
|
@ -25,6 +25,5 @@
|
||||||
#define windowsdri_h
|
#define windowsdri_h
|
||||||
|
|
||||||
void WindowsDRIExtensionInit(void);
|
void WindowsDRIExtensionInit(void);
|
||||||
Bool noDriExtension;
|
|
||||||
|
|
||||||
#endif /* windowsdri_h */
|
#endif /* windowsdri_h */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user