[Home] [Prev] [Next] [Up]


OPT_NATIVEORDER

Macros for determining the byte order.

Usage:

#include <XConfig.h>

OPT_NATIVEORDER is set to 1 if the native byte order of the target hardware is the same as network byte order. (This is the same as the default byte order on the 680x0 in the Macintosh.) This is set to 0 if the byte order is opposite, such as under Microsoft Windows.

Description

These macros can be used to isolate the portions of the application which are specific to a particular platform. By default these macros are set properly if compiled using the Metrowerks Codewarrior compiler.

TODO: set these macros properly for other compilers, such as Visual C++.


[Home] [Prev] [Next] [Up]