From d50d063e4e27a8cf67cbd8c892d7a9e2533bd07f Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 28 Jun 2024 23:05:48 +0200 Subject: [PATCH] (submit/miext-extinit) xfree86: dga: unexport noXFree86DGAExtension and move into extension This isn't needed by any external module, so no need to export it. And those flags are better off in the corresponding extension, instead of the OS layer. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86DGA.c | 2 ++ hw/xfree86/common/xf86Extensions.h | 6 +++--- os/utils.c | 3 --- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/xfree86/common/xf86DGA.c b/hw/xfree86/common/xf86DGA.c index 614c35ae4..2f235871f 100644 --- a/hw/xfree86/common/xf86DGA.c +++ b/hw/xfree86/common/xf86DGA.c @@ -77,6 +77,8 @@ #include "dgaproc.h" #include "protocol-versions.h" +Bool noXFree86DGAExtension = FALSE; + #define DGA_PROTOCOL_OLD_SUPPORT 1 static DevPrivateKeyRec DGAScreenKeyRec; diff --git a/hw/xfree86/common/xf86Extensions.h b/hw/xfree86/common/xf86Extensions.h index 735a9e6ea..6e9f8832d 100644 --- a/hw/xfree86/common/xf86Extensions.h +++ b/hw/xfree86/common/xf86Extensions.h @@ -47,9 +47,9 @@ extern void XFree86VidModeExtensionInit(void); #ifdef XFreeXDGA #include -extern _X_EXPORT Bool noXFree86DGAExtension; -extern void XFree86DGAExtensionInit(void); -extern void XFree86DGARegister(void); +extern Bool noXFree86DGAExtension; +void XFree86DGAExtensionInit(void); +void XFree86DGARegister(void); #endif #endif diff --git a/os/utils.c b/os/utils.c index 4c0998de1..ce9f0f262 100644 --- a/os/utils.c +++ b/os/utils.c @@ -120,9 +120,6 @@ __stdcall unsigned long GetTickCount(void); #include "dixstruct_priv.h" #include "dpmsproc.h" -#ifdef XFreeXDGA -Bool noXFree86DGAExtension = FALSE; -#endif #ifdef XF86VIDMODE Bool noXFree86VidModeExtension = FALSE; #endif