Re: [PATCH spice-gtk] spicy-screenshot: use G_BIG_ENDIAN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 17, 2019 at 3:04 AM <marcandre.lureau@xxxxxxxxxx> wrote:
>
> From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
>
> WORDS_BIGENDIAN is defined by autofoo macro.
> meson doesn't define it. Let's use the GLib define instead.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
> ---
>  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..26f5947 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
> +#ifdef G_BIG_ENDIAN

Bad patch, sending a new one

>          fputc(p[1], fp);
>          fputc(p[2], fp);
>          fputc(p[3], fp);
> --
> 2.20.1.98.gecbdaf0899
>
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]