diff --git a/hw/xfree86/parser/Configint.h b/hw/xfree86/parser/Configint.h index 12b36effd6..001b3a5ed0 100644 --- a/hw/xfree86/parser/Configint.h +++ b/hw/xfree86/parser/Configint.h @@ -56,13 +56,10 @@ * These definitions are used through out the configuration file parser, but * they should not be visible outside of the parser. */ - #ifndef _Configint_h_ #define _Configint_h_ -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include #include diff --git a/hw/xfree86/parser/DRI.c b/hw/xfree86/parser/DRI.c index 124ea85d7c..b5764a8aa6 100644 --- a/hw/xfree86/parser/DRI.c +++ b/hw/xfree86/parser/DRI.c @@ -26,10 +26,7 @@ * * */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "os.h" #include "xf86Parser.h" diff --git a/hw/xfree86/parser/Device.c b/hw/xfree86/parser/Device.c index 383d976862..383f4727e8 100644 --- a/hw/xfree86/parser/Device.c +++ b/hw/xfree86/parser/Device.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "xf86Parser.h" #include "xf86tokens.h" diff --git a/hw/xfree86/parser/Extensions.c b/hw/xfree86/parser/Extensions.c index 206c512ef7..1846083cfc 100644 --- a/hw/xfree86/parser/Extensions.c +++ b/hw/xfree86/parser/Extensions.c @@ -30,10 +30,7 @@ * Kevin E. Martin * */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "os.h" #include "xf86Parser.h" diff --git a/hw/xfree86/parser/Files.c b/hw/xfree86/parser/Files.c index fa1e163d68..e3716668bd 100644 --- a/hw/xfree86/parser/Files.c +++ b/hw/xfree86/parser/Files.c @@ -50,10 +50,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include diff --git a/hw/xfree86/parser/Flags.c b/hw/xfree86/parser/Flags.c index 3620283586..1ff18af208 100644 --- a/hw/xfree86/parser/Flags.c +++ b/hw/xfree86/parser/Flags.c @@ -50,10 +50,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include diff --git a/hw/xfree86/parser/Input.c b/hw/xfree86/parser/Input.c index 0e7f86ea7c..8d6d8b2249 100644 --- a/hw/xfree86/parser/Input.c +++ b/hw/xfree86/parser/Input.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "os.h" #include "xf86Parser.h" diff --git a/hw/xfree86/parser/InputClass.c b/hw/xfree86/parser/InputClass.c index 99b8ce8e8a..dac9f692f5 100644 --- a/hw/xfree86/parser/InputClass.c +++ b/hw/xfree86/parser/InputClass.c @@ -22,10 +22,7 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include diff --git a/hw/xfree86/parser/Layout.c b/hw/xfree86/parser/Layout.c index 14a76b0401..e67d6f3a4a 100644 --- a/hw/xfree86/parser/Layout.c +++ b/hw/xfree86/parser/Layout.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "xf86Parser_priv.h" #include "xf86tokens.h" diff --git a/hw/xfree86/parser/Module.c b/hw/xfree86/parser/Module.c index 1f81a17ac0..6f344e4263 100644 --- a/hw/xfree86/parser/Module.c +++ b/hw/xfree86/parser/Module.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include diff --git a/hw/xfree86/parser/Monitor.c b/hw/xfree86/parser/Monitor.c index 8795e81283..7731268240 100644 --- a/hw/xfree86/parser/Monitor.c +++ b/hw/xfree86/parser/Monitor.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "xf86Parser.h" #include "xf86tokens.h" diff --git a/hw/xfree86/parser/OutputClass.c b/hw/xfree86/parser/OutputClass.c index 856b4114e4..3a9de1e716 100644 --- a/hw/xfree86/parser/OutputClass.c +++ b/hw/xfree86/parser/OutputClass.c @@ -22,10 +22,7 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "os/fmt.h" diff --git a/hw/xfree86/parser/Pointer.c b/hw/xfree86/parser/Pointer.c index f86bc456fd..088e8f1773 100644 --- a/hw/xfree86/parser/Pointer.c +++ b/hw/xfree86/parser/Pointer.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "xf86Parser.h" #include "xf86tokens.h" diff --git a/hw/xfree86/parser/Screen.c b/hw/xfree86/parser/Screen.c index 91e8c66fcf..72718f2676 100644 --- a/hw/xfree86/parser/Screen.c +++ b/hw/xfree86/parser/Screen.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "xf86Parser.h" #include "xf86tokens.h" diff --git a/hw/xfree86/parser/Vendor.c b/hw/xfree86/parser/Vendor.c index 85b40641fd..1d2174cdc1 100644 --- a/hw/xfree86/parser/Vendor.c +++ b/hw/xfree86/parser/Vendor.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "xf86Parser.h" #include "xf86tokens.h" diff --git a/hw/xfree86/parser/Video.c b/hw/xfree86/parser/Video.c index f412861e97..b8ca07561c 100644 --- a/hw/xfree86/parser/Video.c +++ b/hw/xfree86/parser/Video.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "xf86Parser.h" #include "xf86tokens.h" diff --git a/hw/xfree86/parser/configProcs.h b/hw/xfree86/parser/configProcs.h index e20eab57b6..d652fc8f3f 100644 --- a/hw/xfree86/parser/configProcs.h +++ b/hw/xfree86/parser/configProcs.h @@ -148,14 +148,4 @@ void xf86printMatchPattern(FILE * cf, const xf86MatchPattern *pattern, Bool not_first); -#ifdef HAVE_XORG_CONFIG_H -#include -#endif - -#ifndef HAVE_XORG_CONFIG_H -/* Externally provided functions */ -void -ErrorF(const char *f, ...); -#endif - #endif /* XSERVER_XFREE86_CONFIGPROCS_H */ diff --git a/hw/xfree86/parser/patterns.c b/hw/xfree86/parser/patterns.c index 25d1f28dad..583ca53419 100644 --- a/hw/xfree86/parser/patterns.c +++ b/hw/xfree86/parser/patterns.c @@ -3,10 +3,7 @@ * Copyright (c) 2025 Oleh Nykyforchyn * */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include #include diff --git a/hw/xfree86/parser/read.c b/hw/xfree86/parser/read.c index e1c63b9b80..3ad9d7c196 100644 --- a/hw/xfree86/parser/read.c +++ b/hw/xfree86/parser/read.c @@ -51,10 +51,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "xf86Config.h" #include "xf86Parser_priv.h" diff --git a/hw/xfree86/parser/scan.c b/hw/xfree86/parser/scan.c index 5c44ae59b3..c86b705a7c 100644 --- a/hw/xfree86/parser/scan.c +++ b/hw/xfree86/parser/scan.c @@ -50,10 +50,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include #include diff --git a/hw/xfree86/parser/write.c b/hw/xfree86/parser/write.c index 98f0d42b3b..4adfa88dfc 100644 --- a/hw/xfree86/parser/write.c +++ b/hw/xfree86/parser/write.c @@ -50,10 +50,7 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - -#ifdef HAVE_XORG_CONFIG_H #include -#endif #include "os.h" #include "xf86Parser_priv.h" diff --git a/hw/xfree86/parser/xf86tokens.h b/hw/xfree86/parser/xf86tokens.h index 087f707b4a..d45013409a 100644 --- a/hw/xfree86/parser/xf86tokens.h +++ b/hw/xfree86/parser/xf86tokens.h @@ -51,13 +51,10 @@ * the sale, use or other dealings in this Software without prior written * authorization from the copyright holder(s) and author(s). */ - #ifndef _xf86_tokens_h #define _xf86_tokens_h -#ifdef HAVE_XORG_CONFIG_H #include -#endif /* * Each token should have a unique value regardless of the section