* fix compilation without exit code

git-svn-id: trunk@18870 -
This commit is contained in:
florian 2011-08-27 22:45:07 +00:00
parent 2c42d8e1e8
commit 519df6d3a8

View File

@ -130,7 +130,11 @@ procedure haltproc(e:longint);cdecl;external name '_haltproc';
procedure System_exit;
begin
{$ifdef FPC_HAS_FEATURE_EXITCODE}
haltproc(ExitCode);
{$else FPC_HAS_FEATURE_EXITCODE}
haltproc(0);
{$endif FPC_HAS_FEATURE_EXITCODE}
End;