Is there a compiler define that tells if source code is compiled with delphi, in the sense of an equivalent to the FPC define in Free Pascal?
I am developing a unit that should be compatible with three Pascal compilers (Lazarus / Free Pascal, Delphi and winsoft PocketStudio). There are some differences among the compilers, therefore I would like to provide some critical parts of the code in a compiler-specific version.
For Free Pascal I can write
{$IFDEF FPC}
DoSomething;
{$ENDIF}
but what is the equivalent for Delphi?
predifined conditionals
. DCC perhaps. – Straightedge{$IFNDEF FPC}', '{$IFNDEF POCKET_STUDIO}', '{$ELSE}{$DEFINE DELPHI}
. – NickelDCC
- but only in XE and later. – Armageddon