Browse Source

correction

Unknown 6 years ago
parent
commit
0651c500ce
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Quick.Threads.pas

+ 4 - 0
Quick.Threads.pas

@@ -659,7 +659,11 @@ end;
 
 
 constructor TAnonymousThread.Create(aProc : TProc);
 constructor TAnonymousThread.Create(aProc : TProc);
 begin
 begin
+  {$IFNDEF FPC}
+  fThread := TThread.CreateAnonymousThread(aProc);
+  {$ELSE}
   fThread := TThread.CreateAnonymousThread(@aProc);
   fThread := TThread.CreateAnonymousThread(@aProc);
+  {$ENDIF}
 end;
 end;
 
 
 class function TAnonymousThread.Execute(aProc: TProc): IAnonymousThread;
 class function TAnonymousThread.Execute(aProc: TProc): IAnonymousThread;