From b1e97a974d36149a679c8ad8492cbbd67ecafd66 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/inpututils.h | 7 ++----- include/probes.h | 2 -- include/vidmodestr.h | 6 ++---- 5 files changed, 6 insertions(+), 17 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/inpututils.h b/include/inpututils.h index 49b1c1074..318c62e4c 100644 --- a/include/inpututils.h +++ b/include/inpututils.h @@ -21,14 +21,11 @@ * DEALINGS IN THE SOFTWARE. * */ - -#ifdef HAVE_DIX_CONFIG_H -#include "dix-config.h" -#endif - #ifndef INPUTUTILS_H #define INPUTUTILS_H +#include "dix-config.h" + #include "input.h" #include "eventstr.h" #include diff --git a/include/probes.h b/include/probes.h index b7d69f57c..993191385 100644 --- a/include/probes.h +++ b/include/probes.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 */ 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 {