Skip to content
Jiří Malák edited this page Jan 3, 2024 · 9 revisions

OW Architecture Macros

To guard OW architecture specific source code use following preferred architecture macros.

Target architecture OW preferred architecture macro deprecated OW architecture macros
8086 _M_I86 __I86__, __86__, __X86__, _X86_
80x86 _M_X86 _M_I386, __386__, __X86__, _X86_
x64 _M_X64
Alpha __AXP__ _M_ALPHA, __ALPHA__, _ALPHA_
Mips __MIPS__ _M_MRX000
PPC __PPC__ _M_PPC, __POWERPC__, _PPC_
ARM-32 _M_ARM
ARM-64 _M_ARM64

OW Target OS Macros

To guard OW Target specific source code use following preferred architecture macros.

Target OS OW Target OS neutral macro OW Target OS specific macros
DOS __DOS__
OS/2 __OS2__ __OS2_386__
Windows __WINDOWS__ __WINDOWS_386__
NT (WIN32) __NT__ __NT_386__, __NT_AXP__, __NT_PPC__
NT (WIN64) __NT__ __NT_X64__
Linux __LINUX__ __LINUX_386__, __LINUX_X64__, __LINUX_MIPS__, __LINUX_PPC__
Netware __NETWARE__ __NETWARE_386__ __NETWARE5__
RDOS __RDOS__
RDOS drivers __RDOSDEV__

Clone this wiki locally