[Spice-devel] [PATCH spice-gtk v2] spicy-screenshot: use G_BIG_ENDIAN
Victor Toso
victortoso at redhat.com
Thu Jan 17 07:32:29 UTC 2019
Hi,
On Thu, Jan 17, 2019 at 03:08:43AM +0400, marcandre.lureau at redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau at redhat.com>
>
> WORDS_BIGENDIAN is defined by autofoo macro.
> meson doesn't define it. Let's use the GLib defines instead.
We will probably need to fix spice-common too.
> Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
Acked-by: Victor Toso <victortoso at redhat.com>
> ---
> tools/spicy-screenshot.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/spicy-screenshot.c b/tools/spicy-screenshot.c
> index 97bd4da..7511bdf 100644
> --- a/tools/spicy-screenshot.c
> +++ b/tools/spicy-screenshot.c
> @@ -65,7 +65,7 @@ static int write_ppm_32(void)
> n = d_width * d_height;
> p = d_data;
> while (n > 0) {
> -#ifdef WORDS_BIGENDIAN
> +#if G_BYTE_ORDER == G_BIG_ENDIAN
> fputc(p[1], fp);
> fputc(p[2], fp);
> fputc(p[3], fp);
> --
> 2.20.1.98.gecbdaf0899
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190117/9029b836/attachment.sig>
More information about the Spice-devel
mailing list