Browse Source

* Improved FPC version check when to use WaitOnExit().

git-svn-id: trunk@33301 -
yury 9 years ago
parent
commit
a1b8c0f9e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/utils/redir.pp

+ 1 - 1
tests/utils/redir.pp

@@ -1093,7 +1093,7 @@ begin
     P.InheritHandles:=(execinheritshandles in flags);
     P.InheritHandles:=(execinheritshandles in flags);
 
 
     P.Execute;
     P.Execute;
-{$ifdef VER3_0}
+{$if FPC_FULLVERSION < 30100}
 {$ifdef Windows}
 {$ifdef Windows}
     WaitForSingleObject(P.ProcessHandle,max_count);
     WaitForSingleObject(P.ProcessHandle,max_count);
     counter:=max_count;
     counter:=max_count;