mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 01:29:31 +02:00
lcl: remove VER2_3 define
git-svn-id: trunk@36371 -
This commit is contained in:
parent
9226386149
commit
429434dd8e
@ -23,10 +23,6 @@ unit FPCAdds;
|
||||
|
||||
{$mode objfpc}{$H+}{$inline on}
|
||||
|
||||
{$IFDEF VER2_3}
|
||||
{$DEFINE FPC_HAS_QWORDCOMPAREVALUE}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
@ -39,13 +35,6 @@ type
|
||||
TCompareMemSize = integer;
|
||||
PHandle = ^THandle;
|
||||
|
||||
{$IFNDEF FPC_HAS_QWORDCOMPAREVALUE}
|
||||
function CompareValue ( const A, B : QWord) : TValueRelationship; inline;
|
||||
// other CompareValue functions have to be declare too, otherwise fpc
|
||||
// doesn't find them: http://www.freepascal.org/mantis/view.php?id=8620
|
||||
function CompareValue ( const A, B : Integer) : TValueRelationship; inline;
|
||||
function CompareValue ( const A, B : Int64) : TValueRelationship; inline;
|
||||
{$ENDIF}
|
||||
function StrToWord(const s: string): word;
|
||||
|
||||
function AlignToPtr(const p: Pointer): Pointer;
|
||||
@ -83,26 +72,4 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
{$IFNDEF FPC_HAS_QWORDCOMPAREVALUE}
|
||||
function CompareValue (const A, B : QWord) : TValueRelationship;
|
||||
begin
|
||||
result:=GreaterThanValue;
|
||||
if a=b then
|
||||
result:=EqualsValue
|
||||
else
|
||||
if a<b then
|
||||
result:=LessThanValue;
|
||||
end;
|
||||
|
||||
function CompareValue(const A, B: Integer): TValueRelationship; inline;
|
||||
begin
|
||||
Result := Math.CompareValue(A, B);
|
||||
end;
|
||||
|
||||
function CompareValue(const A, B: Int64): TValueRelationship; inline;
|
||||
begin
|
||||
Result := Math.CompareValue(A, B);
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user