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

Christophe Fergeau cfergeau at redhat.com
Thu Aug 9 02:25:59 PDT 2012


On Wed, Aug 08, 2012 at 03:03:25PM -0500, Jeremy White wrote:
> ---
>  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

Not sure what this implies ;) I'm assuming you tested it and it works.
Checking for the render version in configure.ac and failing if it's too old
wouldn't work for you I guess?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120809/9c580c8a/attachment-0001.pgp>


More information about the Spice-devel mailing list