From 0e53fffa4b258b6dd6ad6c71f87ebbfb48e7b960 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 25 Mar 2024 13:46:14 +0100 Subject: [PATCH] ct_driver: define XMODE_'s if not defined yet Traditionally they've been defined in Xorg server headers, but since this driver seems to be the only consumer, it makes sense moving them here. (and later drop them from xorg headers) Explicitly guarding it, so it also works with xorg headers version still carrying those symbols. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- src/ct_driver.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ct_driver.c b/src/ct_driver.c index c183298..8e66508 100644 --- a/src/ct_driver.c +++ b/src/ct_driver.c @@ -131,6 +131,14 @@ /* Driver specific headers */ #include "ct_driver.h" +/* traditionally these had been defined in xf86_OSlib.h */ +#ifndef XMODE_RGB +#define XMODE_RGB 0 +#define XMODE_NTSC 1 +#define XMODE_PAL 2 +#define XMODE_SECAM 3 +#endif + /* Mandatory functions */ static const OptionInfoRec * CHIPSAvailableOptions(int chipid, int busid); static void CHIPSIdentify(int flags);