[Home] [Prev] [Next] [Up]
OPT_MACOS
OPT_WINOS
Macros for determining the target environment
Usage:
#include <XConfig.h>
OPT_MACOS is defined to 1 if compiled on the Macintosh (MacOS 68k or MacOS PPC), or 0 otherwise.
OPT_WINOS is defined to 1 if compiled on Microsoft Windows, 0 otherwise.
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++.