{ Compiler Settings }
{ Last modified: 2014-01-25 }

{$B-} // Complete Boolean Evaluation Off
{$R-} // Range Checking Off
{$Q-} // Overflow Checking Off
{$V-} // Var String Checking Off
{$T-} // Typed @ operator Off
{$X+} // Extended Syntax On
{$P+} // Open String Params On
{$O+} // Optimization On
{$IFDEF WIN32}
{$H+} // Use long strings by default
{$ENDIF}

{ Include all versions of compiler... }

{$DEFINE COMPILER_XE5_UP}
{$DEFINE COMPILER_XE4_UP}
{$DEFINE COMPILER_XE3_UP}
{$DEFINE COMPILER_XE2_UP}
{$DEFINE COMPILER_XE_UP}
{$DEFINE COMPILER2010_UP}
{$DEFINE COMPILER2009_UP}
{$DEFINE COMPILER2007_UP}
{$DEFINE COMPILER2006_UP}
{$DEFINE COMPILER2005_UP}
{$DEFINE COMPILER7_UP}
{$DEFINE COMPILER6_UP}
{$DEFINE COMPILER5_UP}
{$DEFINE COMPILER4_UP}
{$DEFINE COMPILER3_UP}
{$DEFINE COMPILER2_UP}

{ then exclude the unavailable ones }

{$IFDEF VER260}           // Delphi XE5
   // nothing to do
{$ENDIF}

{$IFDEF VER250}           // Delphi XE4
  {$UNDEF COMPILER_XE5_UP}
{$ENDIF}

{$IFDEF VER240}           // Delphi XE3
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
{$ENDIF}

{$IFDEF VER230}           // Delphi XE2
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
{$ENDIF}

{$IFDEF VER220}           // Delphi XE
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
{$ENDIF}

{$IFDEF VER210}           // Delphi 2010
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
{$ENDIF}

{$IFDEF VER200}           // Delphi 2009
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
{$ENDIF}

{$IFDEF VER185}           // Delphi 2007
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
{$ENDIF}

{$IFDEF VER180}           // Delphi 2006
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
{$ENDIF}

{$IFDEF VER170}           // Delphi 2005
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
{$ENDIF}

{$IFDEF VER150}           // Delphi 7
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
{$ENDIF}

{$IFDEF VER140}           // Delphi 6 & C++Builder 6
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
{$ENDIF}

{$IFDEF VER130}           // Delphi 5 & C++Builder 5
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
{$ENDIF}

{$IFDEF VER130}           // Delphi 5 & C++Builder 5
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
{$ENDIF}

{$IFDEF VER125}          // C++Builder 4
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
{$ENDIF}

{$IFDEF VER120}          // Delphi 4
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
{$ENDIF}

{$IFDEF VER110}          // C++Builder 3
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
{$ENDIF}

{$IFDEF VER100}          // Delphi 3
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
{$ENDIF}

{$IFDEF VER93}          // C++Builder 1
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
{$ENDIF}

{$IFDEF VER90}          // Delphi 2
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
  {$UNDEF COMPILER3_UP}
{$ENDIF}

{$IFDEF VER80}          // Delphi 1
  {$UNDEF COMPILER_XE5_UP}
  {$UNDEF COMPILER_XE4_UP}
  {$UNDEF COMPILER_XE3_UP}
  {$UNDEF COMPILER_XE2_UP}
  {$UNDEF COMPILER_XE_UP}
  {$UNDEF COMPILER2010_UP}
  {$UNDEF COMPILER2009_UP}
  {$UNDEF COMPILER2007_UP}
  {$UNDEF COMPILER2006_UP}
  {$UNDEF COMPILER2005_UP}
  {$UNDEF COMPILER7_UP}
  {$UNDEF COMPILER6_UP}
  {$UNDEF COMPILER5_UP}
  {$UNDEF COMPILER4_UP}
  {$UNDEF COMPILER3_UP}
  {$UNDEF COMPILER2_UP}
{$ENDIF}

{$IFDEF COMPILER2010_UP}
  {$INLINE AUTO}
{$ELSE}
  {$IFDEF COMPILER2009_UP}
    {$INLINE ON}
  {$ENDIF}
{$ENDIF}
