-
Notifications
You must be signed in to change notification settings - Fork 185
Source Code Macros
Jiří Malák edited this page Jan 3, 2024
·
9 revisions
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 |
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__ |
- Welcome
- Building
- Open Watcom Documentation
- Notes
- Relicensing effort
- Debugging
- OW tools usage Overview
- OW tools usage with CMake
- OW tools usage with Visual Studio Code
- Open Watcom 1.9 Wiki
OW Development
WGML Development
- WGML
- Augmented Devices
- Binary Device Files
- Common File Blocks
- COP Files
- Device File Blocks
- Device Function Language
- Device Function Notes
- Device Functions
- Directory File Format
- Drawing Boxes
- Driver File Blocks
- File and Directory Names
- Font File Blocks
- Fonts
- GML Tag Notes
- Keyword Statistics
- Macros and User Defined Tags
- Meta Data
- Page Layout Subsystem
- Search Paths
- Sequencing
- System Symbol Notes
- Tabs and Tabbing
- whpcvt Utility interaction