Ver Fonte

Fix compilation error with -dFPC_USE_LIBC for loongarch64 cpu

Pierre Muller há 2 anos atrás
pai
commit
513c8983e0
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      rtl/loongarch64/math.inc

+ 5 - 0
rtl/loongarch64/math.inc

@@ -14,6 +14,7 @@
 
  **********************************************************************}
 
+    {$ifndef FPC_SYSTEM_HAS_INT}
     {$define FPC_SYSTEM_HAS_INT}
     function fpc_int_real(d : ValReal) : ValReal;assembler;nostackframe;compilerproc;
       asm
@@ -23,7 +24,9 @@
         frint.d $fa0, $fa0
         movgr2fcsr $r3, $t0
       end;
+    {$endif ndef FPC_SYSTEM_HAS_INT}
 
+    {$ifndef FPC_SYSTEM_HAS_FRAC}
     {$define FPC_SYSTEM_HAS_FRAC}
     function fpc_frac_real(d : ValReal) : ValReal;assembler;nostackframe;compilerproc;
       asm
@@ -44,3 +47,5 @@
         fdiv.d $fa0, $fa0, $fa1
         // jr $ra
       end;
+    {$endif ndef FPC_SYSTEM_HAS_FRAC}
+