diff options
author | Bastien Nocera <hadess@hadess.net> | 2002-12-04 21:07:30 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2002-12-04 21:07:30 +0000 |
commit | 55f1544e0add37bdf4eba3fedf5f7b6bf510fc5b (patch) | |
tree | 25f26b2e3e7431a17f1201f7c3b124f3634ea602 /gdk-pixbuf | |
parent | 6d5f8224a50c7d5c65b5b9c88058d5968ea7127e (diff) | |
download | gtk+-55f1544e0add37bdf4eba3fedf5f7b6bf510fc5b.tar.gz |
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
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/io-tiff.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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: 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; |