* fix compilation on several OSes after r44010

git-svn-id: trunk@44013 -
(cherry picked from commit 69956cd97a)
This commit is contained in:
florian 2020-01-21 21:50:37 +00:00 committed by marcoonthegit
parent eecfdddd8d
commit 336e72f3c4
21 changed files with 33 additions and 42 deletions

View File

@ -182,7 +182,7 @@ begin
end;
function FileGetDate(Handle: THandle) : LongInt;
function FileGetDate(Handle: THandle) : Int64;
var
tmpFIB : PFileInfoBlock;
tmpDateTime: TDateTime;

View File

@ -76,7 +76,7 @@ begin
end;
function FileGetDate(Handle: THandle) : LongInt;
function FileGetDate(Handle: THandle) : Int64;
var
td: TDOSTIME;
begin

View File

@ -52,8 +52,7 @@ begin
result := -1;
end;
function FileGetDate(Handle: LongInt) : LongInt;
function FileGetDate(Handle: THandle) : Int64;
begin
result := -1;
end;

View File

@ -838,7 +838,7 @@ begin
end;
function FileGetDate (Handle: longint): longint; assembler;
function FileGetDate (Handle: longint): Int64; assembler;
asm
push ebx
{$IFDEF REGCALL}
@ -854,10 +854,11 @@ asm
shld eax, ecx, 16
@FGetDateEnd:
pop ebx
xorl edx,edx
end {['eax', 'ebx', 'ecx', 'edx']};
function FileSetDate (Handle, Age: longint): longint;
function FileSetDate (Handle: longint; Age: Int64): longint;
var FStat: PFileStatus3;
RC: cardinal;
begin

View File

@ -61,13 +61,13 @@ begin
end;
function FileGetDate(Handle: LongInt) : LongInt;
function FileGetDate(Handle: LongInt) : Int64;
begin
result := -1;
end;
function FileSetDate(Handle, Age: Int64) : LongInt;
function FileSetDate(Handle: Longint; Age: Int64) : LongInt;
begin
result := -1;
end;

View File

@ -424,7 +424,7 @@ begin
end;
Function FileGetDate (Handle : Longint) : Longint;
Function FileGetDate (Handle : Longint) : Int64;
var
Regs: registers;
begin
@ -435,14 +435,11 @@ begin
if Regs.Flags and CarryFlag <> 0 then
result := -1
else
begin
LongRec(result).Lo := Regs.cx;
LongRec(result).Hi := Regs.dx;
end ;
result:=(Regs.dx shl 16) or Regs.cx;
end;
Function FileSetDate (Handle, Age : Int64) : Longint;
Function FileSetDate (Handle: longint; Age: Int64) : Longint;
var
Regs: registers;
begin

View File

@ -446,7 +446,7 @@ begin
end;
Function FileGetDate (Handle : Longint) : Longint;
Function FileGetDate (Handle : Longint) : Int64;
(*
Var Info : Stat;
@ -462,7 +462,7 @@ begin
end;
Function FileSetDate (Handle,Age : Int64) : Longint;
Function FileSetDate (Handle: Longint; Age: Int64) : Longint;
begin
// TODO fix

View File

@ -423,7 +423,7 @@ begin
end;
Function FileGetDate (Handle : THandle) : Longint;
Function FileGetDate (Handle : THandle) : Int64;
var
Regs: registers;
begin
@ -434,10 +434,7 @@ begin
if Regs.Flags and fCarry <> 0 then
result := -1
else
begin
LongRec(result).Lo := Regs.cx;
LongRec(result).Hi := Regs.dx;
end ;
result:=(Regs.dx shl 16) or Regs.cx;
end;

View File

@ -853,7 +853,7 @@ Begin
end;
function FileGetDate(Handle: THandle): Longint;
function FileGetDate(Handle: THandle): Int64;
var
res: NTSTATUS;
basic: FILE_BASIC_INFORMATION;

View File

@ -70,13 +70,13 @@ begin
end;
function FileGetDate(Handle: LongInt) : LongInt;
function FileGetDate(Handle: LongInt) : Int64;
begin
result := -1;
end;
function FileSetDate(Handle, Age: Int64) : LongInt;
function FileSetDate(Handle: LongInt; Age: Int64) : LongInt;
begin
result := -1;
end;

View File

@ -362,7 +362,7 @@ begin
end;
Function FileGetDate (Handle : THandle) : Longint;
Function FileGetDate (Handle : THandle) : Int64;
Var Info : NWStatBufT;
PTM : PNWTM;
begin

View File

@ -336,7 +336,7 @@ BEGIN
END;
{
Function FileSetDate (Handle,Age : Int64) : Longint;
Function FileSetDate (Handle: longint; Age: Int64) : Longint;
Function FileSetAttr (Const Filename : String; Attr: longint) : Longint;
}
PROCEDURE SysUtilsTest;

View File

@ -354,7 +354,7 @@ end;
Function FileGetDate (Handle : THandle) : Longint;
Function FileGetDate (Handle : THandle) : Int64;
Var Info : TStat;
_PTM : PTM;
begin

View File

@ -537,7 +537,7 @@ end;
type
TAbstractSearchRec = Record
Time : Longint;
Time : Int64;
Size : Int64;
Attr : Longint;
{ this will be assigned by the generic code; it is actually either a

View File

@ -356,7 +356,7 @@ begin
end;
function FileGetDate (Handle: THandle): longint;
function FileGetDate (Handle: THandle): Int64;
var
FStat: TFileStatus3;
Time: Longint;
@ -376,7 +376,7 @@ begin
FileGetDate:=Time;
end;
function FileSetDate (Handle: THandle; Age: longint): longint;
function FileSetDate (Handle: THandle; Age: Int64): longint;
var
FStat: PFileStatus3;
RC: cardinal;

View File

@ -53,7 +53,7 @@ begin
end;
function FileGetDate(Handle: LongInt) : LongInt;
function FileGetDate(Handle: LongInt) : Int64;
begin
result := -1;
end;

View File

@ -406,7 +406,7 @@ begin
end;
Function FileGetDate (Handle : Longint) : Longint;
Function FileGetDate (Handle : Longint) : Int64;
var
Regs: registers;
begin
@ -424,7 +424,7 @@ begin
end;
Function FileSetDate (Handle, Age : Int64) : Longint;
Function FileSetDate (Handle: longint; Age: Int64) : Longint;
var
Regs: registers;
begin

View File

@ -60,13 +60,13 @@ begin
end;
function FileGetDate(Handle: LongInt) : LongInt;
function FileGetDate(Handle: LongInt) : Int64;
begin
result := -1;
end;
function FileSetDate(Handle, Age: Int64) : LongInt;
function FileSetDate(Handle: Longint; Age: Int64) : LongInt;
begin
result := -1;
end;

View File

@ -650,7 +650,7 @@ end;
Function FileGetDate (Handle : THandle) : Longint;
Function FileGetDate (Handle : THandle) : Int64;
Var
FT : TFileTime;
tmpdtime : longint;

View File

@ -449,7 +449,7 @@ begin
end;
Function FileGetDate (Handle : THandle) : Longint;
Function FileGetDate (Handle : THandle) : Int64;
var
Regs: registers;
begin
@ -461,10 +461,7 @@ begin
if Regs.Flags and fCarry <> 0 then
result := -1
else
begin
LongRec(result).Lo := Regs.cx;
LongRec(result).Hi := Regs.dx;
end ;
Result:=(Regs.dx shl 16) or Regs.cx;
end;

View File

@ -361,7 +361,7 @@ begin
end;
Function FileGetDate (Handle : THandle) : Longint;
Function FileGetDate (Handle : THandle) : Int64;
Var
FT : TFileTime;
tmpdtime : longint;