[OT] Need someone to check something for me on Solaris
Jerry Feldman
gaf at blu.org
Thu Feb 17 08:12:57 EST 2005
I currently do not have access to a Sun Solaris system with a development
environment. (Solaris 8 or more recent on a Sparc).
I need to know if there is a header file in /usr/include/endian.h
or /usr/include/machine/endian.h. And, if so, does it define the symbol
BYTE_ORDER or __BYTE_ORDER.
Essentially, what I want to know is if the following code will work under
Solaris on a Sparc:
#include <endian.h>
#if BYTE_ORDER == BIG_ENDIAN
--- big endian stuff
#else
--- little endian stuff
#endif
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
More information about the Discuss
mailing list