forked from project-jedi/jedi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kylix.inc
30 lines (28 loc) · 936 Bytes
/
kylix.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// 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}