mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 04:32:19 +02:00
* enabled 64 bit filetruncate
git-svn-id: trunk@6739 -
This commit is contained in:
parent
ab906ce02e
commit
6a7321c318
@ -241,10 +241,11 @@ end;
|
||||
Function FileTruncate (Handle: THandle; Size: Int64) : boolean;
|
||||
|
||||
begin
|
||||
{$if defined(linux) and defined(fs32bit)}
|
||||
if Size > high (longint) then
|
||||
FileTruncate := false
|
||||
{$WARNING Support for 64-bit FS to be added!}
|
||||
else
|
||||
{$endif}
|
||||
FileTruncate:=fpftruncate(Handle,Size)>=0;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user