Ver Fonte

* fix compilation without exit code

git-svn-id: trunk@18870 -
florian há 14 anos atrás
pai
commit
519df6d3a8
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      rtl/embedded/system.pp

+ 4 - 0
rtl/embedded/system.pp

@@ -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;