FIX: Compilation for non macOS

(cherry picked from commit 8e147eeefc)
This commit is contained in:
Alexander Koblov 2026-01-10 15:53:31 +03:00
commit e56735c8b6

View file

@ -401,7 +401,9 @@ var
LinkAttrs: TFileAttrs;
begin
Result := TFile.Create(APath);
{$IF DEFINED(DARWIN)}
Result.SetPropertyLazyLoader(@PropertyLazyLoader);
{$ENDIF}
with Result do
begin
@ -477,7 +479,9 @@ begin
raise EFileNotFound.Create(aFilePath);
Result := TFile.Create(ExtractFilePath(aFilePath));
{$IF DEFINED(DARWIN)}
Result.SetPropertyLazyLoader(@PropertyLazyLoader);
{$ENDIF}
FillFromStat(Result, aFilePath, @StatInfo);
{$ELSE}