Platform defines

From Lazarus wiki
Jump to navigationJump to search

note: the tables in this article may not be complete

Useful tips before using platform defines

Architecture defines

define(s) meaning
General
ENDIAN_BIG big endian
ENDIAN_LITTLE little endian
Specific
CPU86 386 and compatible (32 bit PC)
CPU87 386 and compatible (32 bit PC)
CPU386, CPUi386 386 and compatible (32 bit PC)
CPU68K, CPUM68K Motorola 680x0 or compatible CPU
CPUM68020 Motorola 68020 or compatible CPU
CPU68 Motorola 680x0 or compatible CPU
CPUPOWERPC PowerPC processor (32 or 64 bit)
CPUPOWERPC32 PowerPC processor (32 bit)
CPUPOWERPC64 PowerPC processor (64 bit)
CPUARM ARM 32 bit processor

Operating system defines

define(s) meaning
General
BSD *BSD and Darwin
UNIX any UNIX or UNIX-like system.
MSWINDOWS all variants of windows
Specific
LINUX Portal:Linux:Linux
BSD BSD, OS X, Mac OS X, iOS
DARWIN OS X, Mac OS X, iOS
WIN32 32 bit Windows
WIN64 64 bit Windows
GO32V2 MS DOS (using go32v2 extender)

See also