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:
Jon Turney 2020-11-21 15:45:49 +00:00
parent d18dcecbe0
commit bb7aab6afe
2 changed files with 2 additions and 1 deletions

View File

@ -111,6 +111,8 @@ static PixmapFormatRec g_PixmapFormats[] = {
{32, 32, BITMAP_SCANLINE_PAD}
};
static Bool noDriExtension;
static const ExtensionModule xwinExtensions[] = {
#ifdef GLXEXT
#ifdef XWIN_WINDOWS_DRI

View File

@ -25,6 +25,5 @@
#define windowsdri_h
void WindowsDRIExtensionInit(void);
Bool noDriExtension;
#endif /* windowsdri_h */