[Spice-commits] tools/spicy-screenshot.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 17 08:36:58 UTC 2019
tools/spicy-screenshot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 61d87779eb3723a06cafe899b1661d2719d5825d
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Thu Jan 17 02:59:51 2019 +0400
spicy-screenshot: use G_BIG_ENDIAN
WORDS_BIGENDIAN is defined by autoconf macro.
meson doesn't define it. Let's use the GLib defines instead.
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
Acked-by: Victor Toso <victortoso at redhat.com>
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);
More information about the Spice-commits
mailing list