2
0
Эх сурвалжийг харах

* enabled 64 bit filetruncate

git-svn-id: trunk@6739 -
Jonas Maebe 18 жил өмнө
parent
commit
6a7321c318
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      rtl/unix/sysutils.pp

+ 2 - 1
rtl/unix/sysutils.pp

@@ -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;