{$DEFINE DAC600}

{$IFNDEF LINUX}
  {$DEFINE MSWINDOWS}
{$ENDIF}

{$IFDEF VER120} { Delphi 4 }
  {$DEFINE D4}
  {$DEFINE VER4}

  {$DEFINE VER34}
  {$DEFINE VER4P}
{$ENDIF}

{$IFDEF VER130} { Delphi 5 }
{$IFNDEF BCB}
  {$DEFINE D5}
  {$DEFINE VER5}

  {$DEFINE VER5P}
{$ENDIF}
{$ENDIF}

{$IFDEF VER140} { Delphi 6, Kylix 1, Kylix 2 }
{$IFNDEF BCB}
  {$DEFINE D6}
  {$DEFINE VER6}

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

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

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

{$IFDEF VER160} { Delphi 8 }
{$IFDEF DAC450}
  DAC 4.50 does not support Delphi 8!!!
{$ENDIF}
  {$DEFINE D8}
  {$DEFINE VER8}

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

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

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

{$IFDEF VER180} { Delphi 10 }
  {$DEFINE D10}
  {$DEFINE VER10}

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

{$IFDEF VER185} { Delphi 11 }
  {$DEFINE D11}
  {$DEFINE VER11}

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


{$IFDEF VER125} { C++ Builder 4 }
  {$DEFINE BCB}
  {$DEFINE CB4}
  {$DEFINE VER4}

  {$DEFINE VER34}
  {$DEFINE VER4P}
  {$ObjExportAll On}
{$ENDIF}

{$IFDEF VER130} { C++ Builder 5 }
{$IFDEF BCB}
  {$DEFINE CB5}
  {$DEFINE VER5}

  {$DEFINE VER5P}
  {$ObjExportAll On}
{$ENDIF}
{$ENDIF}

{$IFDEF VER140} { C++ Builder 6 }
{$IFDEF BCB}
  {$DEFINE CB6}
  {$DEFINE VER6}

  {$DEFINE VER5P}
  {$DEFINE VER6P}
  {$ObjExportAll On}
{$ENDIF}
{$ENDIF}

{$IFDEF INTERNAL}
{$IFDEF BCB}
  {$DEFINE BDE_SHARED}   // Use TUpdateAction from DBTables
{$ENDIF}
{$ENDIF}

// old

{$IFDEF VER100} { Delphi 3 }
  {$DEFINE D3}
  {$DEFINE D3_CB3}
  {$DEFINE VER34}
  {$DEFINE VER3+}
{$ENDIF}

{$IFDEF VER110} { C++ Builder 3 }
  {$DEFINE CB}
  {$DEFINE CB3}
  {$DEFINE D3_CB3}
  {$DEFINE VER34}
  {$DEFINE VER3+}
  {$ObjExportAll On}
{$ENDIF}

{$IFDEF VER7}
  {$WARN UNSAFE_TYPE OFF}
  {$WARN UNSAFE_CODE OFF}
  {$WARN UNSAFE_CAST OFF}
{$ENDIF}

{$IFDEF VER6P}
  {$WARN SYMBOL_PLATFORM OFF}
  {$WARN SYMBOL_DEPRECATED OFF}
  {$WARN UNIT_PLATFORM OFF}
  {$WARN UNIT_DEPRECATED OFF}
{$ENDIF}

{$IFDEF VER6P}
  {$WARN SYMBOL_PLATFORM OFF}
  {$WARN SYMBOL_DEPRECATED OFF}
  {$WARN UNIT_PLATFORM OFF}
  {$WARN UNIT_DEPRECATED OFF}
{$ENDIF}
