+ add cthreads for unix platforms

git-svn-id: trunk@16299 -
This commit is contained in:
Jonas Maebe 2010-11-03 12:41:32 +00:00
parent c4488f6b3a
commit ae483061b1

View File

@ -4,7 +4,11 @@
{$ifdef fpc}{$mode objfpc}{$endif} {$ifdef fpc}{$mode objfpc}{$endif}
uses SysUtils, Classes; uses
{$ifdef unix}
cthreads,
{$endif}
SysUtils, Classes;
type type
TMyThread = class(TThread) TMyThread = class(TThread)
@ -25,4 +29,4 @@ begin
t := TMyThread.Create(True); t := TMyThread.Create(True);
t.Free; t.Free;
Halt(ord(Flag)); Halt(ord(Flag));
end. end.