{$IFDEF VER120} { Delphi 4.0 }
  {$DEFINE LEVEL4 }
  {$DEFINE DELPHI }
{$ENDIF}
{$IFDEF VER125} { C++Builder 4.0 }
  {$DEFINE LEVEL4 }
  {$DEFINE CBUILDER }
{$ENDIF}
{$IFDEF VER130} { Delphi 5.0/C++Builder 5.0 }
  {$DEFINE LEVEL4 }
  {$DEFINE LEVEL5 }
{$ENDIF}
{$IFDEF ConditionalExpressions}
  {$DEFINE LEVEL4 }
  {$DEFINE LEVEL5 }
  {$IF CompilerVersion >= 14.0} { Delphi 6.0/C++Builder 6.0 }
    {$DEFINE LEVEL6 }
    {$DEFINE LEVELCLX}
  {$IFEND}
  {$IF CompilerVersion >= 15.0} { Delphi 7.0 }
    {$DEFINE LEVEL7 }
  {$IFEND}
  {$IF CompilerVersion >= 16.0} { Delphi 8.0 }
    {$DEFINE LEVEL8 }
    {$UNDEF LEVELCLX}
  {$IFEND}
  {$IF CompilerVersion >= 17.0} { Delphi 9.0 }
    {$DEFINE LEVEL9 }
  {$IFEND}
  {$IF CompilerVersion >= 18.0} { Delphi 10.0 }
    {$DEFINE LEVEL10 }
  {$IFEND}
{$ENDIF}
{$IFDEF BCB}
  {$DEFINE CBUILDER }
{$ELSE}
  {$DEFINE DELPHI }
{$ENDIF}
