[Spice-devel] [PATCH] Enable compilation on systems with older render libraries.

Jeremy White jwhite at codeweavers.com
Wed Aug 8 13:03:25 PDT 2012


---
 src/uxa/uxa-render.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/uxa/uxa-render.c b/src/uxa/uxa-render.c
index ac80c45..b5554e7 100644
--- a/src/uxa/uxa-render.c
+++ b/src/uxa/uxa-render.c
@@ -137,6 +137,7 @@ op_to_string(CARD8 op)
 	/*
 	 * Operators only available in version 0.11
 	 */
+#if RENDER_MAJOR > 0 || RENDER_MINOR > 10
 	C(Multiply);
 	C(Screen);
 	C(Overlay);
@@ -152,6 +153,7 @@ op_to_string(CARD8 op)
 	C(HSLSaturation);
 	C(HSLColor);
 	C(HSLLuminosity);
+#endif
     default: return "garbage";
 #undef C
     }
-- 
1.7.10.4





More information about the Spice-devel mailing list