Robert Elz <k...@munnari.oz.au> writes: > I guess the #include should be made to depend upon which version of > the standard is available, and for older systems, just define the > relevant symbols in-line (macos is, probably, always little endian? > If not, there must be some system dependent file that could be > included instead that will provide that info, somehow, which could > be used.)
macos was big-endian back in its PPC days. You could be excused for not supporting that case for building netbsd today. But I'm sure there's some headers somewhere with info about that, left over from their x86 transition ... regards, tom lane