From c0757a471ff01afd22784b02d05ed6b912af101a Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Mon, 23 Jun 2025 21:48:21 +0100 Subject: [PATCH] xext: move include guards up to wrap the whole file See: https://gcc.gnu.org/onlinedocs/cppinternals/Guard-Macros.html Signed-off-by: Mike Gelfand --- Xext/dpmsproc.h | 4 ++-- Xext/panoramiX.h | 12 ++++++------ Xext/panoramiXsrv.h | 5 ++--- Xext/sleepuntil.h | 4 ++-- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Xext/dpmsproc.h b/Xext/dpmsproc.h index 49c2f647d..9994e5103 100644 --- a/Xext/dpmsproc.h +++ b/Xext/dpmsproc.h @@ -1,10 +1,10 @@ /* Prototypes for functions that the DDX must provide */ -#include - #ifndef _DPMSPROC_H_ #define _DPMSPROC_H_ +#include + #include "dixstruct.h" extern int DPMSSet(ClientPtr client, int level); diff --git a/Xext/panoramiX.h b/Xext/panoramiX.h index 8b46ef344..6db760aa3 100644 --- a/Xext/panoramiX.h +++ b/Xext/panoramiX.h @@ -28,21 +28,21 @@ Equipment Corporation. /* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */ -/* - * PanoramiX definitions - */ - -#include - #ifndef _PANORAMIX_H_ #define _PANORAMIX_H_ +#include + #include #include #include "gcstruct.h" #include "dixstruct.h" +/* + * PanoramiX definitions + */ + typedef struct _PanoramiXInfo { XID id; } PanoramiXInfo; diff --git a/Xext/panoramiXsrv.h b/Xext/panoramiXsrv.h index 8eea4831f..fbccd2cd0 100644 --- a/Xext/panoramiXsrv.h +++ b/Xext/panoramiXsrv.h @@ -1,9 +1,8 @@ - -#include - #ifndef _PANORAMIXSRV_H_ #define _PANORAMIXSRV_H_ +#include + #include "panoramiX.h" extern int PanoramiXNumScreens; diff --git a/Xext/sleepuntil.h b/Xext/sleepuntil.h index ff5cc3364..037278d73 100644 --- a/Xext/sleepuntil.h +++ b/Xext/sleepuntil.h @@ -24,11 +24,11 @@ * XFree86 Project. */ -#include - #ifndef _SLEEPUNTIL_H_ #define _SLEEPUNTIL_H_ 1 +#include + #include "dix.h" extern int ClientSleepUntil(ClientPtr client,