From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: Byte order (was Re: [Q] What #defines for cross-platform) Date: 7 Mar 1997 09:30:04 GMT Organization: The National Capital FreeNet Message-ID: <5fon6s$7jd@freenet-news.carleton.ca> References: <199703042346 DOT PAA14837 AT sirius DOT cs DOT pdx DOT edu> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet2.carleton.ca Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Exceprt from my /sys/endian.h, which came with DJGPP 2.1: #define BIG_ENDIAN 4321 #define LITTLE_ENDIAN 1234 #define BYTE_ORDER LITTLE_ENDIAN Just #include endian.h and test with #if BYTE_ORDER = LITTLE_ENDIAN etc. -- .*. Where feelings are concerned, answers are rarely simple [GeneDeWeese] -() < When I go to the theater, I always go straight to the "bag and mix" `*' bulk candy section...because variety is the spice of life... [me] Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh