use G_BIG_ENDIAN instead of WORDS_BIGENDIAN which isn't set by

2002-12-04  Bastien Nocera  <hadess@hadess.net>

        * io-tiff.c: (tiff_image_parse): use G_BIG_ENDIAN instead of
	WORDS_BIGENDIAN which isn't set by configure.in
This commit is contained in:
Bastien Nocera 2002-12-04 21:07:30 +00:00 committed by Bastien Nocera
parent 6d5f8224a5
commit 55f1544e0a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-12-04 Bastien Nocera <hadess@hadess.net>
* 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 <maclas@gmx.de>
* gdk-pixbuf-animation.c:

View File

@ -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;