Operating Systems: ----------------- SunOS .. 4.1: sun (abbr.: SunOS4) Solaris: sun __svr4__ (abbr.: solaris) Silicon Graphics: sgi AIX: _AIX Atari ST/TT MiNT: atarist Amiga, DICE: AMIGA _DCC Amiga, SAS/C: AMIGA __SASC BeOS __BEOS__ FreeBSD: __FreeBSD__ Linux: linux NeXT: NeXT Sequent: _SEQUENT_ Ultrix: ultrix IBM RS6000 _AIX _IBMR2 HP-UX hpux OS/2 OS2 (not set by all compilers; for some the configure script adds it to the EXTRA_CFLAGS) ??? M_UNIX Apple Unix AUX /* add -D_POSIX_SOURCE to CFLAGS */ Apple Darwin __APPLE__, __MACH__ Windows NT/95/98 _WIN32, WINNT, _WINNT Program Loaders: --------------- msdos: MSDOS Processor Hardware: ------------------ Sparc sparc x86 (MWerks/Be) __INTEL__ x86 (gcc) i386, __i386__ x86 (icc) _M_IX86 PowerPC (Darwin) __ppc__ s/390 __s390__ Itanium (ecc) _M_IA64 compilers: --------- gcc: __GNUC__ Apple CC: __GNUC__, __APPLE_CC__ Cygnus gcc for Win32 __CYGWIN32__ resp. __CYGWIN__ Metrowerks (Be) __MWERKS__ EMX gcc for OS/2 __EMX__ Intel C/C++ Compiler __INTEL_COMPILER (expands to version, e.g. 500)