Browse Source

Fix win32 compilation

git-svn-id: trunk@21346 -
pierre 13 years ago
parent
commit
02f8739bca
1 changed files with 5 additions and 4 deletions
  1. 5 4
      tests/utils/redir.pp

+ 5 - 4
tests/utils/redir.pp

@@ -976,18 +976,19 @@ end;
 {$endif not implemented}
 {$endif not implemented}
 
 
 {............................................................................}
 {............................................................................}
-
+{$ifdef UNIX}
 function TransformfpSystemToShell(s:cint):cint;
 function TransformfpSystemToShell(s:cint):cint;
 // transforms standarized (fp)System(3) result to the conventions of the old Unix.shell function.
 // transforms standarized (fp)System(3) result to the conventions of the old Unix.shell function.
 begin
 begin
  if s=-1 then exit(-1);
  if s=-1 then exit(-1);
  if wifexited(s) then
  if wifexited(s) then
    TransformfpSystemToShell:=wexitstatus(s)
    TransformfpSystemToShell:=wexitstatus(s)
- else if (s>0) then   
-   TransformfpSystemToShell:=-s  
+ else if (s>0) then
+   TransformfpSystemToShell:=-s
  else
  else
-   TransformfpSystemToShell:=s;  
+   TransformfpSystemToShell:=s;
 end;
 end;
+{$endif def UNIX}
 
 
   procedure DosExecute(ProgName, ComLine : String);
   procedure DosExecute(ProgName, ComLine : String);