synapse/kylix.inc

31 lines
966 B
PHP

//
// This is FPC-incompatible code and was excluded from jedi.inc for this reason
//
// Kylix 3/C++ for some reason evaluates CompilerVersion comparisons to False,
// if the constant to compare with is a floating point value - weird.
// The "+" sign prevents Kylix/Delphi from issueing a warning about comparing
// signed and unsigned values.
//
{$IF not Declared(CompilerVersion)}
{$DEFINE KYLIX1}
{$DEFINE COMPILER6}
{$DEFINE DELPHICOMPILER6}
{$DEFINE RTL140_UP}
{$ELSEIF Declared(CompilerVersion) and (CompilerVersion > +14)}
{$DEFINE KYLIX2}
{$DEFINE COMPILER6}
{$DEFINE DELPHICOMPILER6}
{$DEFINE RTL142_UP}
{$ELSEIF Declared(CompilerVersion) and (CompilerVersion < +15)}
{$DEFINE KYLIX3}
{$DEFINE COMPILER6}
{$IFNDEF BCB}
{$DEFINE DELPHICOMPILER6}
{$ENDIF}
{$DEFINE RTL145_UP}
{$ELSE}
Add new Kylix version
{$IFEND}