Browse Source

Add dummy version for symbian

(cherry picked from commit 13368fbb8a1ba48d75145bb0a8c109722b5f1062)
Pierre Muller 2 years ago
parent
commit
ab0549fe61
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rtl/arm/cpu.pp

+ 6 - 0
rtl/arm/cpu.pp

@@ -16,6 +16,10 @@
 {$mode objfpc}
 unit cpu;
 
+{$ifdef symbian}
+  {$define NO_ELF_SUPPORT}
+{$endif}
+
   interface
 
     function VFPv4Support : Boolean;
@@ -57,6 +61,7 @@ unit cpu;
         auxv: PElf32AuxiliaryVector;
       begin
         psysinfo := 0;
+{$ifndef NO_ELF_SUPPORT} 
         ep := envp;
         while ep^ <> nil do
           Inc(ep);
@@ -75,6 +80,7 @@ unit cpu;
             end;
             Inc(auxv);
           end;
+{$endif ndef NO_ELF_SUPPORT} 
       end;