Platform |
CPP defines |
Windows NT 4.0,2000,XP |
__x86__ __NT__ __OSVERSION__=4 __WIN32__ |
Windows NT 3.5 |
__x86__ __NT__ __OSVERSION__=3 __WIN32__ |
Windows 95 |
__x86__ __WIN32__ |
Sun Solaris 2.5 |
__sparc__ __sunos__ __OSVERSION__=5 |
HPUX 10.x |
__hppa__ __hpux__ __OSVERSION__=10 |
HPUX 11.x |
__hppa__ __hpux__ __OSVERSION__=11 |
IBM AIX 4.x |
__aix__ __powerpc__ __OSVERSION__=4 |
Digital Unix 3.2 |
__alpha__ __osf1__ __OSVERSION__=3 |
Linux 2.x (x86) |
__x86__ __linux__ __OSVERSION__=2 |
Linux 2.x (powerpc) |
__powerpc__ __linux__ __OSVERSION__=2 |
OpenVMS 6.x (alpha) |
__alpha__ __vms __OSVERSION__=6 |
OpenVMS 6.x (vax) |
__vax__ __vms __OSVERSION__=6 |
SGI Irix 6.x |
__mips__ __irix__ __OSVERSION__=6 |
Reliant Unix 5.43 |
__mips__ __SINIX__ __OSVERSION__=5 |
ATMos 4.0 |
__arm__ __atmos__ __OSVERSION__=4 |
NextStep 3.x |
__m68k__ __nextstep__ __OSVERSION__=3 |
Unixware 7 |
__x86__ __uw7__ __OSVERSION__=5 |