
{$IFDEF FPC}
  {$DEFINE VER5P}
  {$DEFINE VER6P}
{$ENDIF}

{$IFDEF VER130} { Delphi 5, C++ Builder 5 }
  {$DEFINE VER5}

  {$DEFINE VER5P}
{$IFDEF BCB}
  {$DEFINE CB5}
  {$ObjExportAll On}
{$ELSE}
  {$DEFINE D5}
{$ENDIF}
{$ENDIF}

{$IFDEF VER140} { Delphi 6, C++ Builder 6 }
  {$DEFINE VER6}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
{$IFDEF BCB}
  {$DEFINE CB6}
  {$ObjExportAll On}
{$ELSE}
  {$DEFINE D6}
{$ENDIF}
{$ENDIF}

{$IFDEF VER150} { Delphi 7 }
{$IFNDEF BCB}
  {$DEFINE D7}
  {$DEFINE VER7}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
{$ENDIF}
{$ENDIF}

{$IFDEF VER170} { Delphi 2005 }
  {$DEFINE D9}
  {$DEFINE VER9}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
{$ENDIF}

{$IFDEF VER180} { Delphi 2006 }
{$IFNDEF VER185} { not Delphi 2007 Spacely}
  {$DEFINE D10}
  {$DEFINE VER10}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
{$ENDIF}
{$ENDIF}

{$IFDEF VER185} { Delphi 2007 Spacely}
  {$DEFINE D11}
{$ENDIF}
{$IFDEF VER190} { Delphi 2007 Highlander}
  {$DEFINE D11}
{$ENDIF}

{$IFDEF D11}
  {$DEFINE VER11}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
{$ENDIF}

{$IFDEF VER200} { Delphi 2009 }
  {$DEFINE D12}
  {$DEFINE VER12}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
{$ENDIF}

{$IFDEF VER210} { Delphi 2010 }
  {$DEFINE D14}
  {$DEFINE VER14}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
{$ENDIF}

{$IFDEF VER220} { Delphi XE }
  {$DEFINE D15}
  {$DEFINE VER15}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
{$ENDIF}

{$IFDEF VER230} { Delphi XE2 }
  {$DEFINE D16}
  {$DEFINE VER16}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
{$ENDIF}

{$IFDEF VER240} { Delphi XE3 }
  {$DEFINE D17}
  {$DEFINE VER17}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
{$ENDIF}

{$IFDEF VER250} { Delphi XE4 }
  {$DEFINE D18}
  {$DEFINE VER18}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
{$ENDIF}

{$IFDEF VER260} { Delphi XE5 }
  {$DEFINE D19}
  {$DEFINE VER19}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
{$ENDIF}

{$IFDEF VER270} { Delphi XE6 }
  {$DEFINE D20}
  {$DEFINE VER20}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
{$ENDIF}

{$IFDEF VER280} { Delphi XE7 }
  {$DEFINE D21}
  {$DEFINE VER21}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
{$ENDIF}

{$IFDEF VER290} { Delphi XE8 }
  {$DEFINE D22}
  {$DEFINE VER22}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
  {$DEFINE VER22P}
{$ENDIF}

{$IFDEF VER300} { Delphi XE10 }
  {$DEFINE D23}
  {$DEFINE VER23}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
  {$DEFINE VER22P}
  {$DEFINE VER23P}
{$ENDIF}

{$IFDEF VER310} { Delphi XE10.1 }
  {$DEFINE D24}
  {$DEFINE VER24}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
  {$DEFINE VER22P}
  {$DEFINE VER23P}
  {$DEFINE VER24P}
{$ENDIF}

{$IFDEF VER320} { Delphi XE10.2 }
  {$DEFINE D25}
  {$DEFINE VER25}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
  {$DEFINE VER22P}
  {$DEFINE VER23P}
  {$DEFINE VER24P}
  {$DEFINE VER25P}
{$ENDIF}

{$IFDEF VER330} { Delphi XE10.3 }
  {$DEFINE D26}
  {$DEFINE VER26}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
  {$DEFINE VER22P}
  {$DEFINE VER23P}
  {$DEFINE VER24P}
  {$DEFINE VER25P}
  {$DEFINE VER26P}
{$ENDIF}

{$IFDEF VER340} { Delphi XE10.4 }
  {$DEFINE D27}
  {$DEFINE VER27}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
  {$DEFINE VER22P}
  {$DEFINE VER23P}
  {$DEFINE VER24P}
  {$DEFINE VER25P}
  {$DEFINE VER26P}
  {$DEFINE VER27P}
{$ENDIF}

{$IFDEF VER350} { Delphi XE11 }
  {$DEFINE D28}
  {$DEFINE VER28}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
  {$DEFINE VER22P}
  {$DEFINE VER23P}
  {$DEFINE VER24P}
  {$DEFINE VER25P}
  {$DEFINE VER26P}
  {$DEFINE VER27P}
  {$DEFINE VER28P}
{$ENDIF}

{$IFDEF VER360} { Delphi XE12 }
  {$DEFINE D29}
  {$DEFINE VER29}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
  {$DEFINE VER22P}
  {$DEFINE VER23P}
  {$DEFINE VER24P}
  {$DEFINE VER25P}
  {$DEFINE VER26P}
  {$DEFINE VER27P}
  {$DEFINE VER28P}
  {$DEFINE VER29P}
{$ENDIF}

{$IFDEF VER370} { Delphi XE13 }
  {$DEFINE D37}
  {$DEFINE VER37}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$DEFINE VER7P}
  {$DEFINE VER8P}
  {$DEFINE VER9P}
  {$DEFINE VER10P}
  {$DEFINE VER11P}
  {$DEFINE VER12P}
  {$DEFINE VER14P}
  {$DEFINE VER15P}
  {$DEFINE VER16P}
  {$DEFINE VER17P}
  {$DEFINE VER18P}
  {$DEFINE VER19P}
  {$DEFINE VER20P}
  {$DEFINE VER21P}
  {$DEFINE VER22P}
  {$DEFINE VER23P}
  {$DEFINE VER24P}
  {$DEFINE VER25P}
  {$DEFINE VER26P}
  {$DEFINE VER27P}
  {$DEFINE VER28P}
  {$DEFINE VER29P}
  {$DEFINE VER37P}
{$ENDIF}
