{$IFDEF FPC}
{$MODE DELPHI} {$ENDIF FPC} |
This ensures that the code will still compile with both Delphi and FPC.
Nevertheless, there are some things that will not work. Delphi compatibility is relatively complete up to Delphi 7. New constructs in higher versions of Delphi (notably, the versions that work with .NET) are not supported.