From f40bfb5ca98da32ec3df8736f0bfe9f2809bbf4e Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Mon, 23 Jun 2025 22:22:07 +0100 Subject: [PATCH] dix: move include guards up to wrap the whole file See: https://gcc.gnu.org/onlinedocs/cppinternals/Guard-Macros.html Signed-off-by: Mike Gelfand --- dix/dispatch.h | 10 +++++----- dix/enterleave.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dix/dispatch.h b/dix/dispatch.h index 9d68a0727d..62534d4912 100644 --- a/dix/dispatch.h +++ b/dix/dispatch.h @@ -23,17 +23,17 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ********************************************************/ +#ifndef DISPATCH_H +#define DISPATCH_H 1 + +#include + /* * This prototypes the dispatch.c module (except for functions declared in * global headers), plus related dispatch procedures from devices.c, events.c, * extension.c, property.c. */ -#include - -#ifndef DISPATCH_H -#define DISPATCH_H 1 - int ProcAllocColor(ClientPtr /* client */ ); int ProcAllocColorCells(ClientPtr /* client */ ); int ProcAllocColorPlanes(ClientPtr /* client */ ); diff --git a/dix/enterleave.h b/dix/enterleave.h index b6341ff68a..d8d5ab6d66 100644 --- a/dix/enterleave.h +++ b/dix/enterleave.h @@ -24,11 +24,11 @@ * */ -#include - #ifndef ENTERLEAVE_H #define ENTERLEAVE_H +#include + #include /* DoFocusEvents() */ extern void DoEnterLeaveEvents(DeviceIntPtr pDev,