From: Christian W. <cwa...@gm...> - 2005-05-15 14:05:49
|
The following code in libtifiles/src/misc.c, introduced by Julien in revision 1055 (2005-05-13), doesn't work on Mac OS X (and possibly other BSDs): #ifndef __WIN32__ # include <endian.h> # if __BYTE_ORDER == __BIG_ENDIAN # define WORDS_BIGENDIAN 1 # endif /* __BYTE_ORDER == __BIG_ENDIAN */ #endif /* !__WIN32__ */ There is no <endian.h> on Mac OS X. There is a <machine/endian.h> that defines BYTE_ORDER and BIG_ENDIAN, but as far as I see not __BYTE_ORDER and __BIG_ENDIAN. We should decide whether setting WORDS_BIGENDIAN should be done by configure or in the C code. At the moment, it is done in both places - in configure, as added by Romain as part of one of my Mac OS X patches; in the C code as shown above. -Christian |