Hello Walter, 2012/3/26 Walter 'Wallie' Doekes <wal...@wjd.nu>: >> Big endian check fails on 64 bit numbers > > That amd64 is not a big endian machine, is it? > > I'm suspecting you're running through these options here and getting the > BIG_ENDIAN "default" as fallback: > http://tthsum.devs.nu/svn/trunk/tthsum/endian.h > > Do you know how one is supposed to get the endianness on your platform?
We can get endianess from Debian environment variable: $ dpkg-architecture -qDEB_BUILD_ARCH_ENDIAN little DEB_BUILD_ARCH_ENDIAN=little The following macros from the compiler seem to also be available: #define __ORDER_LITTLE_ENDIAN__ 1234 #define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__ #define __ORDER_PDP_ENDIAN__ 3412 #define __ORDER_BIG_ENDIAN__ 4321 #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ Cheers, -- Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-. -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org