From 89ecfe8cf444641797edb89300c421ef8574bb64 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 29 Jan 2025 10:19:54 +0100 Subject: [PATCH] ifdef-protecct duplicate FOURCC_RGB565 and XVIMAGE_RGB565 These are already defined in the xserver headers, but only in newer versions. Signed-off-by: Enrico Weigelt, metux IT consult --- src/geode_fourcc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/geode_fourcc.h b/src/geode_fourcc.h index f34c2fb..9de924f 100644 --- a/src/geode_fourcc.h +++ b/src/geode_fourcc.h @@ -89,7 +89,10 @@ /* Borrowed from Trident */ +#ifndef FOURCC_RGB565 #define FOURCC_RGB565 0x36315652 +#endif +#ifndef XVIMAGE_RGB565 #define XVIMAGE_RGB565 \ { \ FOURCC_RGB565, \ @@ -108,5 +111,5 @@ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},\ XvTopToBottom\ } - +#endif #endif