mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-25 00:32:24 +02:00
- Remove ver1_0 ifdef
git-svn-id: trunk@3451 -
This commit is contained in:
parent
a40b7d7032
commit
ca06efcd00
@ -962,20 +962,11 @@ end;
|
||||
{$ifdef UNIX}
|
||||
IOStatus:=0;
|
||||
ExecuteResult:=Shell(MaybeQuoted(FixPath(Progname))+' '+Comline);
|
||||
{$ifdef ver1_0}
|
||||
{ Signal that causes the stop of the shell }
|
||||
IOStatus:=ExecuteResult and $7F;
|
||||
{ Exit Code seems to be in the second byte,
|
||||
is this also true for BSD ??
|
||||
$80 bit is a CoreFlag apparently }
|
||||
ExecuteResult:=(ExecuteResult and $ff00) shr 8;
|
||||
{$else}
|
||||
if ExecuteResult<0 then
|
||||
begin
|
||||
IOStatus:=(-ExecuteResult) and $7f;
|
||||
ExecuteResult:=((-ExecuteResult) and $ff00) shr 8;
|
||||
end;
|
||||
{$endif}
|
||||
{$else}
|
||||
{$ifdef Windows}
|
||||
StoreInherit:=ExecInheritsHandles;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user