mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Compiling under Mac OS X
This commit is contained in:
parent
e95c926a27
commit
961890aec6
1 changed files with 4 additions and 3 deletions
|
|
@ -1451,12 +1451,13 @@ begin
|
|||
end;
|
||||
{$ELSEIF DEFINED(DARWIN)}
|
||||
var
|
||||
theFileNameFSRef: FSRef;
|
||||
theSourceFSRef,
|
||||
theTargetFSRef: FSRef;
|
||||
begin
|
||||
Result:= False;
|
||||
if (FSPathMakeRefWithOptions(PAnsiChar(FileName), kFSPathMakeRefDoNotFollowLeafSymlink, theFileNameFSRef, nil) = noErr) then
|
||||
if (FSPathMakeRefWithOptions(PAnsiChar(FileName), kFSPathMakeRefDoNotFollowLeafSymlink, theSourceFSRef, nil) = noErr) then
|
||||
begin
|
||||
Result:= (FSMoveObjectToTrashSync(theFileNameFSRef, nil, kFSFileOperationDefaultOptions) = noErr);
|
||||
Result:= (FSMoveObjectToTrashSync(theSourceFSRef, theTargetFSRef, kFSFileOperationDefaultOptions) = noErr);
|
||||
end;
|
||||
end;
|
||||
{$ELSE}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue