From: Romain <ro...@li...> - 2005-05-15 16:58:43
|
Hi, > #ifndef __WIN32__ > # include <endian.h> > # if __BYTE_ORDER =3D=3D __BIG_ENDIAN > # define WORDS_BIGENDIAN 1 > # endif /* __BYTE_ORDER =3D=3D __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 - It should be set in configure script. This is the best place (my opinion)= . > in configure, as added by Romain as part of one of my Mac OS X patches; > in the C code as shown above. roms. --=20 Romain Li=E9vin : <ro...@li...> Web site : http://www.lievin.net "Linux, y'a moins bien mais c'est plus cher !" |