| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2006.04.03 15:00 "Re: WORDS_BIGENDIAN makes libtiff platform dependent", by Graeme GillBob Friesenhahn wrote: > % 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. |
|||||||