[LC++]Endianess Determination

Yosi natask at hotmail.com
Sun Sep 2 19:33:36 UTC 2001


I am writing a class that has some methods which are endian-aware. The
code is ANSI C++ and will run on several platforms (such as Novell
NetWare, Windows NT/2000, Linux and Solaris). Is there some way in the
standard C++ to know during compilation time if the target is
big-endian or little-endian? I'd hate to make my code dirty with #ifdef


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

More information about the tuxCPProgramming mailing list