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:51 "Re: [Tiff] WORDS_BIGENDIAN makes libtiff platform dependent", by Edward Lam

Hi Bob,

I think you forgot the part where I mentioned that I'm working in 3.7.0, not in 3.8.0.

Regards,

-Edward

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.

% 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
%