{$DEFINE KS}
{$DEFINE KS_COMMON}
{rem$DEFINE KS_DEBUG} // Only for debug

{$IFDEF VER150}
  {$DEFINE KS_COMPILER7}
  {$DEFINE KS_COMPILER6}
  {$IFDEF BCB}
    {$DEFINE KS_CBUILDER7}
    {$DEFINE KS_CBUILDER6}
    {$DEFINE KS_CBUILDER}
  {$ELSE}
    {$DEFINE KS_DELPHI7}
    {$DEFINE KS_DELPHI6}
    {$DEFINE KS_DELPHI}
  {$ENDIF}
{$ENDIF}

{$IFDEF VER140}
  {$DEFINE KS_COMPILER6}
  {$IFDEF BCB}
    {$DEFINE KS_CBUILDER6}
    {$DEFINE KS_CBUILDER}
  {$ELSE}
    {$DEFINE KS_DELPHI6}
    {$DEFINE KS_DELPHI}
  {$ENDIF}
{$ENDIF}

{$IFDEF VER130}
  {$DEFINE KS_COMPILER5}
  {$IFDEF BCB}
    {$DEFINE KS_CBUILDER5}
    {$DEFINE KS_CBUILDER}
  {$ELSE}
    {$DEFINE KS_DELPHI5}
    {$DEFINE KS_DELPHI}
  {$ENDIF}
{$ENDIF}

{$IFDEF VER125}
  {$DEFINE KS_COMPILER4}
  {$DEFINE KS_CBUILDER4}
  {$DEFINE KS_CBUILDER}
{$ENDIF}

{$IFDEF VER120}
  {$DEFINE KS_COMPILER4}
  {$DEFINE KS_DELPHI4}
  {$DEFINE KS_DELPHI}
{$ENDIF}

{$IFDEF KS_DELPHI6}
  {$DEFINE KS_DELPHI6_UP}
  {$DEFINE KS_DELPHI5_UP}
  {$DEFINE KS_DELPHI4_UP}
{$ENDIF}

{$IFDEF KS_DELPHI5}
  {$DEFINE KS_DELPHI5_UP}
  {$DEFINE KS_DELPHI4_UP}
{$ENDIF}

{$IFDEF KS_DELPHI4}
  {$DEFINE KS_DELPHI4_UP}
{$ENDIF}

{$IFDEF KS_CBUILDER6}
  {$DEFINE KS_CBUILDER6_UP}
  {$DEFINE KS_CBUILDER5_UP}
  {$DEFINE KS_CBUILDER4_UP}
{$ENDIF}

{$IFDEF KS_CBUILDER5}
  {$DEFINE KS_CBUILDER5_UP}
  {$DEFINE KS_CBUILDER4_UP}
{$ENDIF}

{$IFDEF KS_CBUILDER4}
  {$DEFINE KS_CBUILDER4_UP}
{$ENDIF}

{$IFDEF KS_COMPILER6}
  {$DEFINE KS_COMPILER6_UP}
  {$DEFINE KS_COMPILER5_UP}
  {$DEFINE KS_COMPILER4_UP}
{$ENDIF}

{$IFDEF KS_COMPILER5}
  {$DEFINE KS_COMPILER5_UP}
  {$DEFINE KS_COMPILER4_UP}
{$ENDIF}

{$IFDEF KS_COMPILER4}
  {$DEFINE KS_COMPILER4_UP}
{$ENDIF}

{$IFDEF KS_CBUILDER}
  {$ObjExportAll On}
{$ENDIF}

{.$DEFINE KS_LZH} { Using Slow LZH compression }
{$DEFINE KS_ZLIB} { Default: Using Fast LZ compression }

{$ALIGN ON}
{$BOOLEVAL OFF}
{$LONGSTRINGS ON}
{$WRITEABLECONST ON}

{ ------------ !! DO NOT CHANGE DEFINES BELOW THIS LINE !! ------------ }

{$IFNDEF KS_DEBUG}
  {$WARNINGS OFF}
  {$HINTS OFF}
{$ENDIF}

{$B-} {- Complete Boolean Evaluation }
{$R-} {- Range-Checking }
{$V-} {- Var-String Checking }
{$T-} {- Typed @ operator }
{$X+} {- Extended syntax }
{$P+} {- Open string params }
{$J+} {- Enable writeable const}
