From cf4db6cbd673bc14f7f797471e59b53cdb8c07a7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 4 Jul 2025 16:54:44 +0200 Subject: [PATCH] include: drop using HAVE_DIX_CONFIG_H This symbol is always defined, and the header is always present, so no need to check for it. Signed-off-by: Enrico Weigelt, metux IT consult --- include/client.h | 2 -- include/displaymode.h | 6 ++---- include/vidmodestr.h | 6 ++---- os/probes_priv.h | 2 -- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/include/client.h b/include/client.h index d71dc8d05..58e98eacf 100644 --- a/include/client.h +++ b/include/client.h @@ -26,9 +26,7 @@ #ifndef CLIENT_H #define CLIENT_H -#ifdef HAVE_DIX_CONFIG_H #include -#endif /* HAVE_DIX_CONFIG_H */ struct _Client; typedef struct _ClientId *ClientIdPtr; diff --git a/include/displaymode.h b/include/displaymode.h index 561087717..5221dc8b4 100644 --- a/include/displaymode.h +++ b/include/displaymode.h @@ -1,10 +1,8 @@ -#ifdef HAVE_DIX_CONFIG_H -#include -#endif - #ifndef _DISMODEPROC_H_ #define _DISMODEPROC_H_ +#include + #include "scrnintstr.h" #define MAXCLOCKS 128 diff --git a/include/vidmodestr.h b/include/vidmodestr.h index b47daa779..41b310710 100644 --- a/include/vidmodestr.h +++ b/include/vidmodestr.h @@ -1,10 +1,8 @@ -#ifdef HAVE_DIX_CONFIG_H -#include -#endif - #ifndef _VIDMODEPROC_H_ #define _VIDMODEPROC_H_ +#include + #include "displaymode.h" typedef enum { diff --git a/os/probes_priv.h b/os/probes_priv.h index b7d69f57c..993191385 100644 --- a/os/probes_priv.h +++ b/os/probes_priv.h @@ -24,9 +24,7 @@ #ifndef XORG_PROBES_H #define XORG_PROBES_H -#ifdef HAVE_DIX_CONFIG_H #include -#endif /* definitions needed to include Dtrace probes in a source file */