[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: endian issues



On Sun, Oct 29, 2000 at 06:37:05PM +1100, Glenn McGrath wrote:
> 
> I guess i should just find a way to ignore endian related code when
> compiling under the Hurd.

Not at all. In addition to what Nils said, there is a very easy way to find
the endianess of the system with an autoconf check at compile time.
That's much better than using a system specific obscure header file.
Of course, that means adding the byte swap in the program, instead in
relying this to be done by the macros in the header. But that's not hard to
do.

The endian check of autoconf works on all systems. If it doesn't use
autoconf, it should :)

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



Reply to: