2006.04.01 04:44 "[Tiff] WORDS_BIGENDIAN makes libtiff platform dependent (3.8.2) and you have to undefine it on MacTel", by ping shu

2006.04.03 15:00 "Re: [Tiff] WORDS_BIGENDIAN makes libtiff platform dependent", by Graeme Gill

% grep WORDS_BIGENDIAN *.c
tif_open.c:#ifndef WORDS_BIGENDIAN
tif_open.c:#ifdef WORDS_BIGENDIAN
tif_open.c:#ifndef WORDS_BIGENDIAN
tif_open.c:#ifdef WORDS_BIGENDIAN
tif_open.c:#ifdef WORDS_BIGENDIAN
tif_predict.c:#if WORDS_BIGENDIAN
tif_predict.c:#if WORDS_BIGENDIAN
% grep HOST_BIGENDIAN *.c
tif_open.c:#if HOST_BIGENDIAN

There's nothing like that in the (older) version I've been using (V3.6.1). In fact in tif_open.c, there doesn't appear to be any compile time endian dependent code. HOST_BIGENDIAN seems to be defined in tiffconf.h, but not used anywhere except tools/ras2tiff.c.

So it looks like compile time endian dependent code has been introduced at some stage. I would suspect it's quite unnecessary (ie. could have been coded differently.)

Graeme Gill.