From e47ef3c2bf7140c553e4c221174ef8d9b78e2d43 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Mon, 23 Jun 2025 22:37:26 +0100 Subject: [PATCH] include: move include guards up to wrap the whole file See: https://gcc.gnu.org/onlinedocs/cppinternals/Guard-Macros.html Signed-off-by: Mike Gelfand --- include/displaymode.h | 6 +++--- include/vidmodestr.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/displaymode.h b/include/displaymode.h index 5610877171..9b60126045 100644 --- a/include/displaymode.h +++ b/include/displaymode.h @@ -1,10 +1,10 @@ +#ifndef _DISMODEPROC_H_ +#define _DISMODEPROC_H_ + #ifdef HAVE_DIX_CONFIG_H #include #endif -#ifndef _DISMODEPROC_H_ -#define _DISMODEPROC_H_ - #include "scrnintstr.h" #define MAXCLOCKS 128 diff --git a/include/vidmodestr.h b/include/vidmodestr.h index b47daa7794..67a0189594 100644 --- a/include/vidmodestr.h +++ b/include/vidmodestr.h @@ -1,10 +1,10 @@ +#ifndef _VIDMODEPROC_H_ +#define _VIDMODEPROC_H_ + #ifdef HAVE_DIX_CONFIG_H #include #endif -#ifndef _VIDMODEPROC_H_ -#define _VIDMODEPROC_H_ - #include "displaymode.h" typedef enum {