From 55f1544e0add37bdf4eba3fedf5f7b6bf510fc5b Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 4 Dec 2002 21:07:30 +0000 Subject: [PATCH] use G_BIG_ENDIAN instead of WORDS_BIGENDIAN which isn't set by 2002-12-04 Bastien Nocera * io-tiff.c: (tiff_image_parse): use G_BIG_ENDIAN instead of WORDS_BIGENDIAN which isn't set by configure.in --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/io-tiff.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 63298c4472..ca7c012abd 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2002-12-04 Bastien Nocera + + * io-tiff.c: (tiff_image_parse): use G_BIG_ENDIAN instead of + WORDS_BIGENDIAN which isn't set by configure.in + 2002-11-29 Matthias Clasen * gdk-pixbuf-animation.c: diff --git a/gdk-pixbuf/io-tiff.c b/gdk-pixbuf/io-tiff.c index a91255b0a2..3e6d9fca05 100644 --- a/gdk-pixbuf/io-tiff.c +++ b/gdk-pixbuf/io-tiff.c @@ -280,7 +280,7 @@ tiff_image_parse (TIFF *tiff, TiffContext *context, GError **error) TIFFRGBAImageGet (&img, (uint32 *)pixels, width, height); TIFFRGBAImageEnd (&img); -#ifdef WORDS_BIGENDIAN +#if G_BYTE_ORDER == G_BIG_ENDIAN /* Turns out that the packing used by TIFFRGBAImage depends on the host byte order... */ while (pixels < pixbuf->pixels + bytes) { uint32 pixel = *(uint32 *)pixels;