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 14:38 "Re: [Tiff] WORDS_BIGENDIAN makes libtiff platform dependent", by Bob Friesenhahn

Now here's the kicker:

% grep HOST_BIGENDIAN *.[ch]
tif_config.h:#define HOST_BIGENDIAN 0
% grep WORDS_BIGENDIAN *.[ch]
tif_config.h:/* #undef WORDS_BIGENDIAN */

Although they're mentioned, they don't seem to be used at all! Taken with your statement that libtiff requires knowing the host endian order, how does libtiff 3.7.0 work at all? (or maybe if doesn't since I'm only ever on Intel CPUs :)

I hope that you are executing these grep commands in the libtiff subdirectory where the library is build. This is the only place they are used.

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
tif_open.c:#if HOST_BIGENDIAN

Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/