* fixed compilation for wince.

git-svn-id: trunk@7517 -
This commit is contained in:
yury 2007-05-29 17:03:03 +00:00
parent 8bcb6e689d
commit 0c6fb09094
2 changed files with 6 additions and 0 deletions

View File

@ -24,8 +24,10 @@ Var
procedure InitThread(stklen:SizeUInt);
begin
SysResetFPU;
{$ifndef HAS_MEMORYMANAGER}
{ initialize this thread's heap }
InitHeapThread;
{$endif HAS_MEMORYMANAGER}
if MemoryManager.InitThread <> nil then
MemoryManager.InitThread();
{ ExceptAddrStack and ExceptObjectStack are threadvars }
@ -43,7 +45,9 @@ Var
procedure DoneThread;
begin
{$ifndef HAS_MEMORYMANAGER}
FinalizeHeap;
{$endif HAS_MEMORYMANAGER}
if MemoryManager.DoneThread <> nil then
MemoryManager.DoneThread();
CurrentTM.ReleaseThreadVars;

View File

@ -95,7 +95,9 @@ begin
{ install threadvar handler }
fpc_threadvar_relocate_proc:=RelocProc;
{$ifdef FPC_HAS_FEATURE_HEAP}
{$ifndef HAS_MEMORYMANAGER}
RelocateHeap;
{$endif HAS_MEMORYMANAGER}
{$endif}
end;