Browse Source

* more fpc_lib_exit change compilation fixes

git-svn-id: trunk@42112 -
Jonas Maebe 6 years ago
parent
commit
41f36233ea
2 changed files with 6 additions and 2 deletions
  1. 3 1
      rtl/android/sysandroid.inc
  2. 3 1
      rtl/wince/system.pp

+ 3 - 1
rtl/android/sysandroid.inc

@@ -79,6 +79,8 @@ end;
 
 procedure LibMainAndroid; external name 'FPC_LIB_MAIN_ANDROID';
 
+procedure fpc_lib_exit_intern; external name 'FPC_LIB_EXIT';
+
 procedure atexit(p: pointer); cdecl; external;
 
 var
@@ -101,7 +103,7 @@ begin
   FpClose(_SaveStdOut);
   FpClose(_SaveStdErr);
   // Finalize the library
-  fpc_lib_exit;
+  fpc_lib_exit_intern;
   // Close stdout and stderr if stdio has been closed
   if ioclosed then
     begin

+ 3 - 1
rtl/wince/system.pp

@@ -789,6 +789,8 @@ var
   _SS : Cardinal;
 {$endif cpu386}
 
+procedure fpc_lib_exit_intern; external name 'FPC_LIB_EXIT';
+
 function Dll_entry : longbool;[public, alias : '_FPC_DLL_Entry'];
 begin
    IsLibrary:=true;
@@ -813,7 +815,7 @@ begin
        end;
      DLL_PROCESS_DETACH :
        begin
-         Fpc_Lib_Exit;
+         Fpc_Lib_Exit_intern;
          if assigned(Dll_Process_Detach_Hook) then
            Dll_Process_Detach_Hook(DllParam);
        end;