1.1 OMG IDL Compiler Extensions

The IDL compiler defines preprocessor macros specific to the platform. All macros predefined by the preprocessor that you are using can be used in the OMG IDL file, in addition to the user-defined macros. You can also define your own macros when you are compiling or loading OMG IDL files.

The following table describes the predefined macros for each platform.

Table 1-1 Predefined Macros

Macro Identifier Platform on Which the Marco Is Defined
__unix__ Sun Solaris, HP-UX, and IBM AIX
__sun__ Sun Solaris
__hpux__ HP-UX
__aix__ IBM AIX
__win_nt__ Microsoft Windows